means that
preventing a problem is often easier, cheaper and less harmful than dealing with its consequences afterwards.
similar to
Prevention is better than cure A stitch in time saves nine
For example, it is much better and easier to stop a problem before happening than to correct it afterwards; It takes much more effort to correct a problem… This is a situation where “An ounce of prevention is worth a pound of cure” applies.