Love the Lord your God with all your heart, with all your mind and with all your strength. (this is only possible by being filled with the Holy Spirit).
When you in Love with Jesus like that, You SHALL not have any other Gods. (Because you won't want to). When you are in love with Jesus like that, You SHALL not covet your neighbors wife, or his donkey, or his household. (because you will be too busy thanking Jesus for what he has given you).
You can see the "shall not" as a restriction, or you can see it as a promise. I have been looking at it as a promise in recent times. When I'm focused on my love for Jesus and serving him, I'm not to tempted to commit adultery, or theft or murder. I'm too busy seeking Jesus and his will, to be chasing the will of my flesh.
Do I get tempted? Yes. Every day. But those temptations are like little children begging me to play with child's toys. I'm too busy doing adult things to be worried about it. I have bigger and better things occupying my interests. My goals are like flying real planes vs. playing with model planes.
So, his promise is fulfilled in my life because I definitely "shall not" be interested in doing things that keep me from experiencing the dynamic presence and guidance of Christ in my life each day. If I let any temporary things of this world capture my attention, I'd miss what Jesus wants to do in my life! Who knows how many phenomenal things I would miss? For what? A temporary pleasure???
Like Moses, I am daily reminded that the pleasure of sin is temporary. But, the surpassing glory of God is eternal. I don't want to miss that. So, maybe I'm not going to be another Moses. But, maybe God has something planned that is just as awesome. Why would I want to be unfaithful?? No, I want to be prepared!!
I believe you will have less temptation, when you see yourself as a person pursuing your calling. Stop seeking temporary things, and and start preparing yourself to fulfill the destiny God has for you in Christ. When you "fix your eyes" on the things he has prepared for you, you will be less distracted by these little things, these child's toys of carnal behavior.
What is God calling you to live out? Don't think of yourself as small, but think of God as great. What would a great God do, if he had your full attention to be fully prepared for his work?
By renewing your mind and thoughts, you will be able to overcome lust. Stop thinking about the past love life you had. Renew it by thinking about the future, and how Gods love is sorrounded you. Say NO to the devil and stop blaming your self. Read the Bible alot and remind yourself what God doesnt like and start eliminating them in your life deliberately.
You need to be delivered from the spirit of lust. All things that manifest in the natural have roots in the spiritual realm. Just as we have ministering holy angels from God, there are tormenting demons from hell. It starts in the mind. Thoughts that come into your mind that are not pure are straight from the demons of hell. You are being tormented by a demon of lust and you need deliverance from it. An excellent ministry on deliverance is in Hot Springs, AR called Lake Hamilton Bible Camp. Google it online and go to the website. You will find information on how to deal with this issue and be free from it.