There are at least four schools of thought, I guess:
(1) We are to build our character so we can consistently obey the Lord
(2) We can only obey through surrendered walking by or in the Spirit moment to moment
(3) The more we walk in the Spirit, the more we will build Christian character, making it easier to obey even if we are not in the Spirit
(4) We can get better and better at walking in the Spirit, but we never get to a place where we can obey God without being "in the Spirit", "filled with the Spirit" and/or walking by or in the Spirit - it's a moment to moment phenomenon.
Here's some Scripture to consider. What's your view?
Rather, clothe yourselves with the Lord Jesus Christ, and do not think about how to gratify the desires of the flesh.Ephesians 2:3
All of us also lived among them at one time, gratifying the cravings of our flesh and following its desires and thoughts. Like the rest, we were by nature deserving of wrath.he has given us his very great and precious promises, so that through them you may participate in the divine nature, having escaped the corruption in the world caused by evil desires.
5 For this very reason, make every effort to add to your faith goodness; and to goodness, knowledge; 6 and to knowledge, self-control; and to self-control, perseverance; and to perseverance, godliness; 7 and to godliness, mutual affection; and to mutual affection, love. 8 For if you possess these qualities in increasing measure, they will keep you from being ineffective and unproductive in your knowledge of our Lord Jesus Christ. 9 But whoever does not have them is nearsighted and blind, forgetting that they have been cleansed from their past sins.
10 Therefore, my brothers and sisters,[a] make every effort to confirm your calling and election. For if you do these things, you will never stumble, 11 and you will receive a rich welcome into the eternal kingdom of our Lord and Savior Jesus Christ. 2 Peter 1.we[c] also glory in our sufferings, because we know that suffering produces perseverance; 4 perseverance, character; and character, hope. Romans 5:3-4as you received from us instruction as to how you ought to [a] walk and please God (just as you actually do [b]walk), that you excel still more.2 For you know what commandments we gave you [c]by the authority of the Lord Jesus.3 For this is the will of God, your sanctification; that is, that you abstain from [d]sexual immorality;4 that each of you know how to [e]possess his own [f] vessel in sanctification and honor,5 not in [g] lustful passion, like the Gentiles who do not know God; 6 and that no man transgress and defraud his brother in the matter because the Lord is the avenger in all these things, just as we also told you before and solemnly warned you. 7 For God has not called us for the purpose of impurity, but [h]in sanctification. 8 So, he who rejects this is not rejecting man but the God who gives His Holy Spirit to you. 1 th 4Take away the dross from the silver, And there comes out a vessel for the smith; Prov 25:4