It may not be a sin to be tempted, but it is certainly a sin to give into it! The best way not to give in is to get away from it! Sometimes when temptation comes my way, I start to pray. I just ask God to help me to focus on something else. after a while it loses it's power and goes away. But sometimes the temptation is too great, I just need to run!