What is the meaning of [Prevention is better than cure]

It is better to take precautions against a thing happening than to have to
repair the damage after it has occurred. For example, if a bicycle tyre is
badly worn it is better to have a new one fitted than take a chance of a blow-
out when you are miles from anywhere.