It means narrowly turning from a big mistake and learning important lessons. It indicates that the person will get rid of an event that will get him into trouble with his luck. It expresses that for those who cannot recover themselves after separations or losses, they will hold on to life again thanks to the support of their friends and loved ones.