Where's the line between tempting thoughts and sinful thoughts?

-The Large Catechism, The Ninth and Tenth Commandments, 292-310