It really depends on why you do the good works. If you are doing the works to try to merit heaven, then you are placing yourself under the law; denying Jesus' merit and replacing it with your own. Your own merit, under the law, is insufficient.
Galatians 5: 3 I testify again to every man who accepts circumcision that he is obligated to keep the whole law. 4 You are severed from Christ, you who would be justified by the law; you have fallen away from grace.
I know there are better verses, but the idea is the same. We are righteous because of our belief. If we attempt to be righteous because of our works, we are placing our justification under the law, and we will fail.
Could doing good works, for the wrong reason, jeopardize our salvation? Possibly.
Mark, chapter 3, he who blasphemes against the Holy Spirit never has forgiveness, but is subject to eternal condemnation
Saying that Jesus' merit is insufficient for our salvation and requires our work is blasphemous. Our works are a fruit of our salvation and is a visual testimony to our salvation. The idea that our works earn us salvation is a dangerous belief.
I doubt any believer, who has the Holy Spirit living in him, can blaspheme the Holy Spirit.