The whole point of Christianity as originally taught is that Jesus was without blemish. He did nothing wrong. Our world judged and condemned him, giving him the right to judge our world.
That is how justice works. The world condemned the only innocent and perfect being to live here, so that one perfect being, Jesus Christ, now by the demands of justice is allowed to return judgement on our world to make things equal.
There is more to it than that. Jesus was the only perfect being to live on this planet. He literally was half God. He had the ability to live forever, being part God, and the ability to die, being part mortal. He had to be willing to let himself die, otherwise he wouldn’t have died.
Also, the night before his crucifixion and then again on the cross all the guilt and pain of every living soul was put on his shoulders. He felt it all. Even though he was innocent, he felt all the pain and guilt that every person ever deserved or caused.
Then he willingly died, as the last step of his willing sacrifice.
He now has the right to judge us and all of this world. Luckily for us, he has no intention of condemning everyone. He intends to show mercy on any who are willing to change their ways, and follow his teaching of loving God and loving everyone, even loving their enemies.
Also, because he was half God, he did not have to stay dead. After a few days, he took up his body again, and lives. He can and will give the gift of life again to every person who ever lived.
This is called resurrection. All people will live again in a perfect body that never suffers death.
Everyone, will be resurrected when Christ chooses. Everyone will be judged, also, by Christ.
He will show mercy on those that seek to do his will. He will punish those that willfully ignore him and his commandments to love God and all people.