Be good or you won't get into heaven. Have you heard that one? I've heard it...on plenty of Christian sites. I see people preaching Christ and then turn around and say But if you have to stop sinning or you won't get into heaven. Isn't that a contradiction? Are you relying on Jesus or are you relying on your ability to stop sinning for heaven?
The trouble with topics like this is that people have a tendency to split into two camps, both with flaws in their reasoning.
If we take the view that once we are saved that's it - the so-called "one and done" approach to salvation, then it follows that all we need to do is "give our lives to Christ" as a one-time change, then we can go back to doing just what we were doing before. That falls foul of all sorts of NT teaching, such as "shall we continue to sin that grace may abound?" and "faith without works is dead" and "work out your salvation with fear and trembling" and so on.
If we take the view that we have to be good or we won't make it to heaven we fall foul of the whole concept of salvation by grace rather than through works and the notion that we are somehow worthy of a place in heaven thanks to our own good works. This also falls foul of what Paul said about building on the foundation that is Jesus Christ.
If we take the notion that works are evidence of faith, rather than a way of earning a ticket to heaven, we potentially end up in a few thorny places but I think those places are thorny because they are supposed to be thorny, they are supposed to be uncomfortable. If our good works cease, what should we conclude about what is going on in our hearts? Does it mean we have ceased to believe? Why did Paul tell the Corinthians to "examine yourselves as to whether you are in the faith" if salvation was as simple as a one-time "accept Jesus Christ" and then just get on and do whatever you want? Clearly there's no need to "examine yourself" if all there is to it is saying a quick prayer.
Of course all this leads into another question, namely whether we can lose our salvation.