We can learn from Torah how to resist temptation.