The Holy Spirit lives in believers. It doesn’t mean we are perfect. It doesn’t mean we display the Fruit of the Spirit as we should.
Gal. 5:22-23, But the fruit of the Spirit is love, joy, peace, longsuffering, gentleness, goodness, faith, meekness, temperance: against such there is no law.
This "Spirit Fruit" is in us, but we still have a say in what we allow in our lives. We need to avoid places, people, things, images, music---anything that tempts us. If we mess around with it, we’ll give in to it, Pro. 6:27.
Galatians 5:25 If we live in the Spirit, let us also walk in the Spirit.
As the Lord molds us to His image, the Holy Spirit is able to give us victory over the desires of the flesh. As we surrender to Jesus, read the Word, pray and praise Him, we will be more alive in the Spirit and dead to the flesh.