Jesus used hyperbole all the time.  It was hyperbole, in my opinion --- and a pretty clear case of it --- to say that lusting in one's heart is the same as completing the act.  The hyperbole was to more emphatically make the point that's it's sinful to lust.  In case you doubt that, remember that lust is one of the capital sins.