James seems to be written to those who, in large part, are poor and who are suffering at the hands of rich people ('Are not the rich oppressing you and dragging you into court?' 2:6b). And yet they are themselves guilty of 'dishonouring the poor' (2:6a).
Isn't that often the case? It reminds me of the closing scene of Animal Farm where the pigs now stand on their hind legs, like people, and their faces change into human ones.