What is the meaning of [An ounce of protection is worth a pound of cure.]

A little precaution before a crisis hits is better than lot of firefighting afterwards.

Example: Get the vaccination on priority. An ounce of protection is worth a pound of cure.