Genuine question for those who believe this 🧐

If you need to be saved by the loving power of Jesus Christ in order to be accepted into the kingdom of heaven... what happened to all the people on Earth before Jesus was born?   

That seems wildly unfair.