More precisely, to me it depends on the importance of the problem.
If I'm training, it's probably not worth risking an injury, while if you're on the last go of your holiday, I'd go for it.
Of course, climbing at one's limit is not safe by definition.