How do we avoid the judgment that fell on the rich man in the story of Lazarus?

My friend said non religious people perfect their skills at winning the earthly life but religious people also focus on the heavenly life after this life. I always think I don’t want to have all money and joy on earth and then die and not go to heaven. But it does not seem smart to purposely ruin your life so you can go to heaven.

How do we avoid the judgment that fell on the rich man in the story of Lazarus?
Post Opinion