A stitch in time saves nine.

Meaning: A timely effort will prevent more work later.