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

1.
aprender la lección, recibir un escarmiento
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.
Después de perder todo su dinero, finalmente aprendió la lección sobre el juego.
•
If you don't study, you'll fail the exam and learn your lesson the hard way.
Si no estudias, suspenderás el examen y aprenderás la lección por las malas.