Beyond moral rules, the President's power is constrained both by the Constitution and Congress. He is not within his right to issue executive orders that violate the previous.
That law mentions visa issuance. But Trump is disallowing people with valid visas from coming in. Is it actually illegal? If so, what specifically is the conflict?
An E.O. which violates Constitutionally-valid statutory restriction on the executive is, ipso facto, a violation of the provision of the Constitution empowering Congress with the authority to control the matter addressed by the statute.