Accidents will always happen, even where there is an expectation of success. However carefully we try to lead our lives things nonetheless will sometimes go wrong.
The original has its origins in the 18th century, as in John Muller’s A treatise containing the practical part of fortification, 1755: But, notwithstanding all human precautions that can be taken, yet accidents will happen.