i'm sorry, i don't usually pick faults with grammar as grammar rules can sometimes be too picky but i'm afraid the phrase is 'teach you a lesson' not 'learn you a lesson'. that's why a teacher teaches, and a pupil learn.
teach you a lesson is usually used as a threat indicating impending violence.
jimmy: yo mama is so ugly, she turns people's stomachs!
phil: you son of a bitch! i'm going to teach you a lesson!
(this phrase should be teach you a lesson and not learn you a lesson.)