If you want to control and resolve your works of the flesh, then you have to get out of Sin Consciousness.
Hebrews 10:2 refers to this situation.
Sin Conscienceness in a Christian, is created and maintained by wrong faith........that is explained as trying to be good so that God will continue to accept you and keep you, vs, understanding that God only accepts you, saves you and keeps you = because of Jesus's obedience.
Once a Christian comes to understand that God only accepts them based on their Faith in Christ, and never their works or lifestyle or behavior, then that revelation frees them from sin consciousness.
Paul's verse reads......."Bring every thought to the obedience of Christ"....>"Casting down imaginations".
That simply means... your natural mind is going to want to try to earn salvation and keep it by earning it.......so, cast that down.....and replace it by the knowledge that you Saved and are eternally accepted and kept by God, only because of Christ's obedience.
Christ's Obedience is .......He went to The Cross for you, and that is where your salvation is found and kept. = Jesus is Salvation.
Simply understand that God saved you and keeps you, because of The Cross of Christ, and not because of your confessing sin, or trying to do good works.
What ive just explained to you, is Paul's teaching regarding how you "put on the Helmet of Salvation".