give it to someone vs teach someone a lesson

give it to someone

verb
  • To beat up or punish someone. 

  • To have sexual relations with someone. 

  • To put up a good fight against someone. 

  • To give someone credit; to praise someone. 

teach someone a lesson

verb
  • To punish someone. 

How often have the words give it to someone and teach someone a lesson occurred in a corpus of books? (source: Google Ngram Viewer )