And this xenophobic, nativist paranoia is pernicious and dangerous. It may have been useful when we lived in small, competitive hunter-gatherer bands, but in a civilized society it's toxic.
It's indicative of a primitive, rule focused, deontologic, non-consequential, morally retarded mindset.
Kohlberg:
Level 2 - Conventional morality
At the conventional level (most adolescents and adults), we begin to internalize the moral standards of valued adult role models.
Authority is internalized but not questioned, and reasoning is based on the norms of the group to which the person belongs.
The moral principles involved still obtain. They haven't changed, and they trump any temporary, human law, conventions or current social norms.
All you can do? You can be principled. You can be consequentialist. You can question intentions and results.