God can judge these things because He knows how sin and temptation work. He knows that sin is disobedience, chosing to follow our own desires instead of His. How would God being less Holy and Righteous make Him more able to judge?
James 1;
13When tempted, no one should say, "God is tempting me." For God cannot be tempted by evil, nor does he tempt anyone; 14but each one is tempted when, by his own evil desire, he is dragged away and enticed. 15Then, after desire has conceived, it gives birth to sin; and sin, when it is full-grown, gives birth to death.
He has explained what temptation and sin is, how it works and shown us a way to escape.
1Cor 10:
13No temptation has seized you except what is common to man. And God is faithful; he will not let you be tempted beyond what you can bear. But when you are tempted, he will also provide a way out so that you can stand up under it.

blessings
Bookmarks