Just keep trying and growing in grace. As you grow, you will develope the in the fruit of God's Holy Spirit. One of them is self-control, and is one of the tough ones to grow in - along with patience. You will see and know the wisdom of His fruit as you grow in them. Stay filled with God's Word, renew your mind daily and , meditate upon His Word - engrafting it into yourself so that you might not sin against it. God will perform these changes in you as you grow in Him and desire the change, as you have expressed in your post.
Galatians 5:22 But the fruit of the Spirit is love, joy, peace, longsuffering, kindness, goodness, faithfulness,
23 meekness, self-control; against such there is no law.
Romans 12:2 And be not conformed to this world: but be ye transformed by the renewing of your mind, that ye may prove what is that good, and acceptable, and perfect, will of God.
Psalms 119:11 Thy word have I hid in mine heart, that I might not sin against thee.