Do not do works for salvation. They don't get you saved and they don't keep you saved.
Here's the proof. Romans 4-5 says,
But to him that worketh not, but believeth on him that justifieth the ungodly,
his faith is counted for righteousness. Even as David also described it the
blessedness of the man to whom the Lord impudeth righteousness without works,
saying, Blessed are they whose iniquities are forgiven, and whose sins are covered.
Blessed is the man to whom the Lord will not impute sin.
Ephesians 2 verse 8 through 9 says, For by grace are you saved through faith,
and that not of yourselves it is the gift of God, not of works, lest any man should boast.
Titus 3-5 says, Not by works of righteousness which we have done,
but according to his mercy he saved us by the washing and regeneration and renewing of the
Holy Ghost. The only types of works that will save us is the finished work of Christ on the cross.
And yes, we do have to do works after salvation in order to please God and to earn rewards,
but the Bible makes it very clear that even if we don't, we're still saved.
Romans 3-28 says, Therefore we conclude that a man is justified by faith
without the deeds of the law.