At least, you could learn a habit to scan your immediate environment frequently and put yourself in a position that's easy to exit from potential dangerous situations. This skill would make you to be able to identify sources of danger before it suddenly approaches to you.
It's like an experienced driver has less surprising situation on road to handle, because he/she can see it ahead of time and steer away from potential dangers. A new driver would feel those surprises are unavoidable.