teach a lesson to

See: punish