An insightful observation I once heard was about the situations in which we are most likely to experience strong temptation. The observation was that we are most prone to sin when we are Hungry, Angry, Lonely and Tired. An awareness of our weaknesses when we are experiencing those things should help us avoid potentially compromising situations.
“No temptation has overtaken you that is not common to man. God is faithful, and he will not let you be tempted beyond your ability, but with the temptation he will also provide the way of escape, that you may be able to endure it.” (1 Corinthians 10:13, ESV)