They could respond, however, that they did not say anything deceitfully against Job, but only what they thought. Job therefore shows that if this were true, they would fall into another vice although they had been excused from deceit, namely, the respect of persons which excludes the justice of a judge. Respect of persons consists in someone condemning or denying the justice of another which is apparent because of the greatness the other person, although he does not know his justice. If, therefore, the friends of Job judged him to be evil, though they saw justice clearly in him and did so only... in the consideration of the divine greatness, although they could not understand according to their own dogmas how Job might be punished by God justly, it is as if they were respecting the person of God in the judgment with which they condemned Job. So he then says, "Do you take God's part and try to judge for God?" He clearly says this because someone strives to judge for another, who does not know his justice, and yet tries to invent any means he can to show that his cause is just.
Source: Commentary on Job