Glad you're okay, but we should take a closer look at this sentiment.
1. With care, you can foresee and predict most accidents. Obviously not every scenario, but the vast majority of things that have injured acquaintances are things I would never leave to chance. Not that I'm perfect, I've done stupid things, and mostly been lucky.
2. Experience helps with foresight. The more you've seen, the more you will be able to predict potential danger. If you've ever worked with someone a generation younger than you, then I'm sure you've seen this, watching them do things that you might have been inexperienced enough to have done twenty years prior.
If I ever parked my tractor uphill of where I'm working, and it rolled on me, I'd be dead. Not only is it tipping the scales around 5000 lb., but it has a concrete-filled 1200 lb. square steel box on the back, and a very sharp hardened edge on a 400 lb. loader bucket on the front. Because I've seen tractors roll, I try to never work downhill of it, or to keep one eye on it when I have no other choice.
I also used to work on things (eg. bucking trees) held up by my loader bucket, until one day I saw how fast the thing can crash to the ground if a hose bursts. Not the slow bleed-down you'd expect, but the bucket and the 600 lb mower deck I had lifted with it came crashing down like they'd been dropped off the roof. I was lifting it in preparation to pressure wash, and admit I may have been dumb enough to get up close and do some scraping if it hadn't fallen first, a practice I haven't repeated in the ~5 years since that occurrence. The more you know...