Is Opposition to Illegal Immigration a Sin?

Not only do nations have the right to enact laws that limit immigration but also nations have as their principal obligation to first assure the common welfare of its own citizens.