He who indeed avoids adultery, but keeps lust in his heart, has not understood the prohibition of adultery, which requires of him complete purity. (religion-online.org)
For example, adultery was a sin punishable by death, but Jesus told the people if you look at a woman with lust in your heart you have committed adultery. (religion.blogs.cnn.com)