I'm also fond of
กันดีกว่าแก้
gan dii-gwaa gaae
"Preparing is better than repairing."
Or a better equivalent in English would be, "An ounce of prevention is worth a pound of cure."