learn your lesson
US /lɜrn jʊər ˈlɛsən/
UK /lɜrn jʊər ˈlɛsən/

1.
imparare la lezione, prendere una lezione
to suffer a bad experience and understand from it not to do the same thing again
:
•
After losing all his money, he finally learned his lesson about gambling.
Dopo aver perso tutti i suoi soldi, ha finalmente imparato la lezione sul gioco d'azzardo.
•
If you don't study, you'll fail the exam and learn your lesson the hard way.
Se non studi, fallirai l'esame e imparerai la lezione a tue spese.