Proverb
It is better to prevent a disease than to have to cure it.
Precaution and prevention of an undesirable thing is preferable to dealing with its potential consequences.