"I say then: Walk in the Spirit, and you shall not fulfill the lust of the flesh." Galatians 5:16How is it possible to be in a pit and walk in the Spirit?
Walking in the Spirit means that your mind is occupied with the Word of God throughout your day.
When your thoughts are focused on the Almighty, it is impossible to fall into temptation because the Spirit of the Word sustains, supports and strengthens the faith.