Always remember that God isn’t the one who is tempting you, and you have a free will to resist temptations.
James: 1:12-17: Blessed is the man that endureth temptation: for when he is tried, he shall receive the crown of life, which the Lord hath promised to them that love him. 13: Let no man say when he is tempted, I am tempted of God: for God cannot be tempted with evil, neither tempteth he any man: 14: But every man is tempted, when he is drawn away of his own lust, and enticed. 15: Then when lust hath conceived, it bringeth forth sin: and sin, when it is finished, bringeth forth death. 16: Do not err, my beloved brethren. 17: Every good gift and every perfect gift is from above, and cometh down from the Father of lights, with whom is no variableness, neither shadow of turning.
Read the bible to learn wisdom from God, he never fails us, and helps us to avoid temptations.

Lord help this poor soul to resist temptations, and remove all bad thoughts as he gets into your word so he can gorw strong in you. I pray in Jesus name, amen.