Jesus is teaching about the purity of heart and the danger of lust and adultery. Specifically, Jesus is emphasizing the need to guards one’s thoughts and intentions, not just outward actions, in order to maintain a right relationship with God.