I'm sorry to hear about your struggles Lost, and Lost Sheep.
All I offer is, think of how good you feel about yourself when you successfully resist temptation. Write down how proud you are of yourself, and how good you feel. Also, when you give in and sin, write down how disappointed and bad you feel after.
Before coming close to giving into a temptation, read your writings and think back to how you feel AFTER you've sinned, or how you feel AFTER you successfully resists temptation.
I think this could help give some foresight to the action when struggling with temptation.
Hope this helps.