What is the meaning of [Better go about than fall into the ditch]

“Better put an end to a troublesome business than to be always vex’d with it.”,James Kelly (1818). A Complete Collection of Scottish Proverbs Explained and Made Intelligible to the English Reader. Rodwell and Martin. p. 35.