Once he has burnt himself he is very careful to see that it doesn’t happen again. Any such painful experience is not soon forgotten. When someone has been hurt by an experience, they are likely to be more cautious or fearful of similar experiences in the future.
The proverb is thought to have originated in the 17th century and is often used to describe the effects of trauma or bad experiences on people.