The teaching of both Islam and Judaism is that an evil thought only becomes sinful when it results in evil behavior. But humans do need to be limited by societal and religious restrictions. Examples ...