Romans 2:2

2 Now we know that God’s judgment against those who do such things is based on truth.

Read Romans 2:2 Using Other Translations

But we are sure that the judgment of God is according to truth against them which commit such things.
We know that the judgment of God rightly falls on those who practice such things.
And we know that God, in his justice, will punish anyone who does such things.