Firstly, God is a good judge. He will judges all things, secret and known; good and evil.
Ecclesiastes 12:14
For God shall bring every work into judgment, with every secret thing, whether it be good, or whether it be evil. (2 Timothy 4:8 )
If He let someone off from punishment of bad things, because they did mostly good things, He could not be a good and righteous judge. I like the example given in the movie Courageous. "Nathan Hayes: "Ok. Suppose she (your mom) was brutally attacked, and murdered in a parking lot. The guy was caught and put on trial. They guy says hey judge, I've committed this crime, but I've done a lot of good in my life. If the judge let him go free, would you say he was a good judge or a bad judge?" ..."because the Bible says that God is a good judge, and He will punish the guilty, not for what they did right, but for what they did wrong. Because He loves us, He sent his son, Jesus Christ, to take the punishment that we deserved, and put it on Himself, and that's why He died on the cross. But it only applies, if you accept it. That's why I asked for his forgiveness. I asked Him to save me. And I'm a new man because of Christ. You understand what I'm telling you? Then what's holding you back?"
Ephesians 2:8-9 For by grace are ye saved through faith; and that not of yourselves: it is the gift of God: Not of works, lest any man should boast.
Romans 6:23
For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.
For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord.
BUT this does not mean you can go to heaven work-free!
hows that you ask?
Because simply having faith in God is a work. Once you truly have a faith in the Almighty, you will follow Him; which is another work of many works.
James2:17, 20, 26
17Even so faith, if it hath not works, is dead, being alone.20But wilt thou know, O vain man, that faith without works is dead?
26For as the body without the spirit is dead, so faith without works is dead also.
Faith, is not real faith, unless you act on it. You can say you have faith in a chair all you want, but until you sit in it, the claimed faith is useless.
Until you live depending on God, trusting Him with all your life, your claimed faith in God is dead.
This is the works to get to heaven: Trusting God, Loving God, Believing God, Following God.