It's not just that targeting refugees, immigrants, and green card holders based on their religion is capricious and cruel. It's that it's dangerous. Once again, the people wrapping themselves most ostentatiously in the flag of national security are the ones who create the most hazards--to the citizenry and to the republic.
When you're about to do the very thing your enemy most ardently hopes you'll do, it doesn't mean ipso facto your move is dumb. But it ought to give you pause, at least.