Thomas À Kempis said this quote

It happens very often that those whom men esteem highly are more seriously endangered by their own excessive confidence. Hence, for many it is better not to be too free from temptations, but often to be tried lest they become too secure, too filled with pride, or even too eager to fall back upon external comforts.