We serve a righteous God. He can only do right. When Jesus was here on earth, He never sinned.
Are we righteous? No. We sin - each and everyone of us. Some will say they are good, but do they live up to God's standards? No. That is the thing we have to remember - we are not living up to man's standards. We are living up to God's. Since we will never live a sinless life, we do not meet His standard of righteousness. Therefore, we do not deserve to go to heaven. It is only by the gift of God that we get that opportunity.
As it is written, There is none righteous, no, not one: