Is legal obedience, pursuing a righteousness through the law, then a work of the flesh?
Let's "simplify" for the sake of your question.
taking God's name in vain is wrong - for Christians .... like it or not.
But that does mean we can earn salvation by not taking God's name in vain.
It also does not mean that a Christian claiming salvation - who then freely chooses to take God's name in vain - will still go to heaven.
So now... Phil 3.
3 for
we are the true circumcision, who worship in the Spirit of God and glory in Christ Jesus and put no confidence in the flesh, 4 although I myself might have confidence even in the flesh. If anyone else has a mind to put confidence in the flesh, I far more: 5 circumcised the eighth day, of the nation of Israel, of the tribe of Benjamin, a Hebrew of Hebrews; as to the Law, a Pharisee; 6 as to zeal, a persecutor of the church; as to the righteousness which is in the Law, found blameless.NASB
Phil 3 -- NKJ
7 But what things were gain to me, these I have counted loss for Christ. 8 Yet indeed I also count all things loss for the excellence of the knowledge of Christ Jesus my Lord, for whom I have suffered the loss of all things, and count them as rubbish,
that I may gain Christ 9 and be found in Him, not having my own righteousness, which
is from the law, but that which
is through faith in Christ, the righteousness which is from God by faith; 10 that I may know Him and the power of His resurrection, and the fellowship of His sufferings, being conformed to His death, 11
if, by any means, I may attain to the resurrection from the dead.
Pressing Toward the Goal
12
Not that I have already attained, or am already perfected; but I press on, that I may lay hold of that for which Christ Jesus has also laid hold of me. 13 Brethren,
I do not count myself to have apprehended; but one thing I do, forgetting those things which are behind and reaching forward to those things which are ahead, 14 I press toward the goal for the prize of the upward call of God in Christ Jesus.
Romans 8
He condemned sin in the flesh, 4 so that the requirement of the Law might be f
ulfilled in us, who do not walk according to the flesh but according to the Spirit. 5 For those who are according to the flesh set their minds on the things of the flesh, but those who are according to the Spirit, the things of the Spirit. 6 For the mind set on the flesh is death, but the mind set on the Spirit is life and peace, 7 because
the mind set on the flesh is hostile toward God; for it does not subject itself to the law of God, for it is not even able to do so, 8 and those who are in the flesh cannot please God.
9 However,
you are not in the flesh but in the Spirit, if indeed the Spirit of God dwells in you. But if anyone does not have the Spirit of Christ, he does not belong to Him. 10 If Christ is in you, though the body is dead because of sin, yet the spirit is alive because of righteousness.
1 Cor 9
26 Therefore I run thus: not with uncertainty. Thus I fight: not as
one who beats the air. 27 But
I discipline my body and bring it into subjection, lest, when I have preached the gospel to others, I myself should become disqualified.