What is wonderful is that you hate the sin/s and want to be closer to the Father. That is, of course, sadly not true for all!
It never hurts at all, at all, to fast along with the praying to be protected from the temptation. (But please don't overdo the fasting. You can get health problems as unfortunately I know from personal experience.) That is all that has really worked for me, personally, against strong satanic attacks, fasting and hear felt prayer.
One thing I have learned over the years in my own life is that, if I am struggling hard against the temptation, I am going to lose sooner or later. Usually it is sooner.
It is like the devil is this alien coming against us saying "Resistance is useless!" He's right. So right. That is, our own human resistance. He's too much for us.
I have learned it is better not to try. It is better to rely. You cannot overcome very strong overcome temptation. Why bother? But your Savior can do it for you!
Like everyone else I have had sins (not that I am lily white now, ahem!) that are too embarrassing to mention. Yet I can easily think of two right off the top of my head that used to have me in slavery, but that now I hardly ever think about, because Yahushua, the Burden Bearer set me free from them.
There is hope. There is Him. He wants you free more than you do. Fast and pray and don't try, rely. He loves you. So much. He'll do for you what you can never do for yourself, little child of His.