Do you think that being a Christian is all about trying hard to be good? If you fail then you don’t deserve God’s presence?
If so, then Delete. That. Thinking. Now.
Go and read what Paul says in Colossians 3: Learn to see your life from God’s perspective; resist the things that drag you away from God; learn to love people more. Breathe in the peace Jesus brings and the Words Jesus speaks. Live like the amazingly loved child of God that you are.
Just the tiniest bit of faith in Jesus makes you 100% OK with God. Invite God to be present and watch the ‘goodness’ in you begin to grow.