It is not too late to make up for the situation before it is too late.
"Mending the sheepfold" means that it is not too late to repair the sheepfold after the sheep is lost. From "Warring States Policy·Chu Ce": "It is not too late to mend the situation after the sheep has been lost."
"It is not too late to mend the situation after the sheep has been lost" means that people are not afraid of doing something wrong, but they are afraid of not doing it wrong. Correct in time; I am even more afraid that not only will I not correct in time, but I will continue to make mistakes. As time goes by, I may not even have the chance to make amends.
Extended information:
The idiom story of "making things right":
Once upon a time, someone raised a flock of sheep. One morning, he found that a sheep was missing. After careful inspection, he found that there was a hole in the sheepfold. During the night, a wolf came in and took away one of the sheep. The neighbor advised him: "Repair the sheepfold quickly and plug the holes!" The man refused to accept the advice and replied: "The sheep have been lost, so why repair the sheepfold?" The next morning, he found the sheep One less.
It turned out that the wolf got in through the hole again and took away a sheep. He regretted that he had not listened to his neighbor's advice, so he quickly blocked the hole and repaired the sheepfold. From then on, the wolf could no longer get into the sheepfold and snatch the sheep.
The idiom "make up for the situation before it is too late" is based on the above story. It expresses the meaning that after a mistake has been made in handling something, it is not too late to save it as soon as possible.
Baidu Encyclopedia - Making up for the situation