The executive’s authority under the Immigration and Nationality Act is broad but not unlimited. The President can impose restrictions on the entry of aliens when it’s in the national interest, particularly for security reasons. However, any action must be consistent with the Constitution and other statutory constraints.
For example: An executive order closing borders to nationals from a specific country due to an ongoing war or epidemic may be valid, but blanket bans based on race or religion would likely be unconstitutional.