 If the Holy Spirit couldn't dwell with us just because we make mistakes, that would mean that any thought, any action, any lapse in judgment would cause the Holy Spirit to abandon us, which would mean that the Holy Spirit would come and go. That's not what the Holy Spirit does. The Holy Spirit doesn't abandon us when we make mistakes. Sure, we should feel convicted when we sin. Yes, there are consequences to sin. Yes, sin is still very destructive in the life of the believer. And yes, there are still even eternal consequences to sin through the loss of reward in the life of the believer. But what sense would it make for God to remove from you? Your only power to be holy as a punishment for not being holy. Think about it. The Holy Spirit in you allows you to resist sin. Therefore, when the Holy Spirit abides, He's working with us against the sin nature.