The notion that one can be in active disobedience to God and saved at the same time is a fallacy.
Salvation is not some abstract notion which cloaks disobedience to God. That kind of thinking is Satan's very first lie repackaged.
Salvation is inclusive of a regenerated heart in which one has died to sin and has been awakened to righteousness. To hold the idea that one can "sometimes" disobey God and be "saved" is evidence that one does not understand what salvation actually means.
Jesus taught...
Joh 8:34 Jesus answered them, Verily, verily, I say unto you, Whosoever committeth sin is the servant of sin.
Joh 8:35 And the servant abideth not in the house for ever: but the Son abideth ever.
Joh 8:36 If the Son therefore shall make you free, ye shall be free indeed.
The word "committeth" is poieō in the Greek and it means "produce" or "bring forth."
For example...
Mat 3:8
Bring forth [poieō] therefore fruits meet for repentance:
Mat 3:10 And now also the axe is laid unto the root of the trees: therefore every tree which
bringeth not forth [mē poieō] good fruit is hewn down, and cast into the fire.
It can also be rendered "make," "cause," "do," "did" etc. All in the context of something "produced" or "brought forth."
Jesus called the Pharisees slaves because they produced sin in their lives. Jesus came to set people free from sin that one may serve righteousness.
To be "set free indeed from serving sin" is analogous of salvation, not only because it is what Jesus plainly taught in John 8:31-47, but the Scriptures also states...
Mat 1:21 And she shall bring forth a son, and thou shalt call his name JESUS:
for he shall save his people from their sins.
Paul taught the same thing in stating...
Rom 6:16 Know ye not, that to whom ye yield yourselves servants to obey, his servants ye are to whom ye obey; whether of sin unto death, or of obedience unto righteousness?
Rom 6:17 But God be thanked, that ye were the servants of sin, but ye have obeyed from the heart that form of doctrine which was delivered you.
Rom 6:18 Being then made free from sin, ye became the servants of righteousness.
Any individual whom is still yielding themselves to sin is very plainly and evidentially not saved. Such an individual has not been set free.
There are many people in such a state whom will argue otherwise because they wish for a "salvation" which is inclusive of being able to serve Satan. Yet the Bible is very clear...
Jesus came to destroy the works of the devil.
1Jn 3:8
He that committeth [poieō] sin is of the devil; for the devil sinneth from the beginning. For this purpose the Son of God was manifested, that he might destroy the works of the devil.
Let no one deceive you...
1Jn 3:7 Little children, let no man deceive you:
he that doeth [poieō] righteousness is righteous, even as he is righteous.
He who abides in Jesus doesn't sin...
1Jn 3:6 Whosoever abideth in him sinneth not: whosoever sinneth hath not seen him, neither known him.
Of course the use of the term "sin" here is in the context of purposeful wrongdoing, not falling short in ignorance due to a lack of knowledge and wisdom. God will judge the secrets of men by Jesus Christ according to the Gospel.
Rom 2:12 For as many as have sinned without law shall also perish without law: and as many as have sinned in the law shall be judged by the law;
Rom 2:13 (For not the hearers of the law are just before God, but the doers of the law shall be justified.
Rom 2:14 For when the Gentiles, which have not the law, do by nature the things contained in the law, these, having not the law, are a law unto themselves:
Rom 2:15 Which shew the work of the law written in their hearts, their conscience also bearing witness, and their thoughts the mean while accusing or else excusing one another
Rom 2:16 In the day when God shall judge the secrets of men by Jesus Christ according to my gospel.
God looks at the heart, the motive. Those whom are saved have pure motives for the heart has been purified by faith (Act 15:9) and faith works by love (Gal 5:6) and love works no ill (Rom 13:10).