‘That’s true, but banning those of a specific religion will venture into prickly legal ground.’
The only rights non-citizens have are based on international law.
It’s been widely reported that Jimmy Carter banned Iranians. Was it on religious grounds? Or did my memory fail me?
Nope. It was based on nationality.