So, our salvation is not predicated on our behavior. Salvation is based one hundred percent on a relationship with Jesus. Therefor by the deeds of the law there shall no flesh be justified in his sight. It is not what you achieve, but in Whom you believe. That is the secret.
Good works have nothing to do with obtaining our salvation.
But they have everything to do with our response to our salvation. Good works are important for salvation, but that's the response. Good works are a loving response on our part for what Jesus did on the cross for us. You must overcome to qualify. We must overcome our inclination to live a life separate from God.