So did you get hit by a car before learning to look both ways when crossing the street? Or did someone tell you?
Are you suggesting the first people that learned to cross a road got hit by cars before realizing they had to look both ways? There was no one to tell them how to look, so how did they learn it except by "being hit by a car"?
Edit: but for what it’s worth even in this stupid example. To learn from experience that you must look both ways does imply you suffered the consequence of not knowing it beforehand. Be that being hit or coming close. Pedantic w/e