Yeah, the same with me as ForthAngel said. I gave into temptations before too, even though I knew better. I had some friends who I had to stop hanging out with because all they wanted to do was drugs/drink. They were my best and only friends though. It was hard to let that go. I have learned that we have to prepare our hearts and be committed to resist any temptations that come across our path, to not do evil, and to keep our mind stayed on God. David said “My heart is fixed (or prepared), O God, my heart is fixed : I will sing and give praise” (Psalms 57:7) This is what he wrote when he was hiding in a cave from Saul who wanted to kill him. David’s men tried to get him to kill Saul and seize the throne which was rightfully his, but he didn’t, even though it would have been in self-defense and no one would have blamed him. But he prepared his heart that he wouldn't take the kingdom by killing Saul. Even Saul said “the Lord delivered me into your hands, but you did not kill me. When a man finds his enemy, does he let him get away unharmed?” (1 Sam 24:18-19). Most people in that situation would probably have killed Saul. But David already settled what he would do so there were no other options. That's commitment
It was written about king Rehoboam in 2 Chronicles 12:14 "
And he did evil, because he prepared not his heart to seek the LORD". Again, it's important to keep fixing our eyes on God so we don't slip into anything else or go against God's will.
You're on the right path! Keep putting God first in your life and resist the devil and he will flee from you!
By the way, it really is blessing me to read your journey in Christ
"Through Jesus, therefore, let us continually offer to God a sacrifice of praise—the fruit of lips that openly profess his name" Hebrews 13:15