By Yielding to the work of the Holy Ghost in us. The more you try to stop sinning of your own strength and will, the more you will either fail or briefly succeed only to be overcome by Spiritual sins such as pride and the religious spirit. It is through our weakness and yielding that the Holy Spirit can work in our lives. When we are broken and repent that is when He is able to do above all that we can ask or think, that we can Give him the glory, and not ourselves (Ephesians 3:20-21).
I am the vine, ye are the branches: He that abideth in me, and I in him, the same bringeth forth much fruit: for without me ye can do nothing. (John 15:5)
You have the closest answer to what I believe.