It's both, I'd say.
That is not to say, however, that they are equivalent sins. Jesus taught that if you lust after a women, you've committed adultery in your heart but He was not advocating the death penalty for lust. Thus, a longing to sin is itself a sin, which is a major part of why the...