proverb
said to mean that
By correcting a small mistake you have made, you can avoid making a bigger one.