Shlomo HaMelech said that the Torah of a chacham is a source of life, to turn away from the snares of death. After a stumble the yetzer brings despair, like a builder who wasted a whole day weeping over one broken block. One must go forward, and not occupy himself with the mines.