to learn what to do or not to do in the future because you have had a bad experience in the past
LEARN YOUR LESSON
Meaning of LEARN YOUR LESSON in English
Oxford Advanced Learner's English Dictionary. Оксфордский английский словарь для изучающик язык на продвинутом уровне. 2005