There is precedent...
Exodus 20:17
Thou shalt not covet thy neighbour's house, thou shalt not covet thy neighbour's wife, nor his manservant, nor his maidservant, nor his ox, nor his ass, nor any thing that is thy neighbour's.
But God is specifically noted as having the ability to see into men's (and women's) souls, whereas mankind is specifically noted in the Bible as not having that ability. Therefore, God may judge intent and thought, whereas man can only adjudicate according to another man's actions.