It is better to proceed with caution before rather than to suffer afterward.
The earliest known use of this proverb is by the Irish novelist Samuel Lover who used it in his book Rory O'More (1837). Another form of the expression is 'better be sensible than sorry'.