***Then how can God punish someone for doing what can not be avoided?***
Original sin. Something the church fathers taught.
They are not being punished for not knowing Christ. They are being punished for their rebellion.
How can I be guilty of something that happened long before I was born? If true the man's justice is greater than God's. How can that be?