pray ahead of time
Wouldn't it be nice if we never felt tempted to do wrong things? That will never happen. The Bible says that temptation must come. We need to already have the faith in God so that when temptation comes, we'll be ready. Pray ahead of your troubles. Pray before you even get into a situation you're not comfortable in.
Don't forget that God has promised us strength, but we have to ask for it first!
Sad, but many people only recognize their need for God when things begin to fall apart.
It's not too late. Pray up. Be ready. Trust God to fight your battles!
Luke 22:40 - "When He came to the place, He said to them, Pray that you may not enter into temptation."