In the last chapter of the apocalypse, John talks about the wonders of the Lord, about the greatness that awaits him who has washed his spiritual clothes, because all those who are pure in heart will serve the Lord Almighty in the kingdom of heaven.
Not everyone will be able to enjoy these heavenly wonders, because the great judgment of the Lord will come upon sinners:
For without are dogs, and sorcerers, and whoremongers, and murderers, and idolaters, and whosoever loveth and maketh a lie.
Revelation 22:15
Because all those who commit such abominations mentioned by this great man of God, will receive judgment and punishment, for them there will be no mercy, they will have no part in the great heavenly city, they will not inherit the kingdom of heaven.
This judgment comes for the dogs, the fornicators, idolaters, murderers, those who love to do evil and practice everything that is against the laws of the Lord.
The doors will be closed for all this type of people, the wicked of the earth will see the powerful hand of God fall on them, their lies and their abominations will consume them. This will be the sad reward for the bad guys.