to find out how to behave by learning from your mistakes or from unpleasant experiences, rather than from being told
LEARN (STH) THE HARD WAY
Meaning of LEARN (STH) THE HARD WAY in English
Oxford Advanced Learner's English Dictionary. Оксфордский английский словарь для изучающик язык на продвинутом уровне. 2005