While the Vatican does have walls, anyone can pretty much just walk on through them with perhaps a trip through a metal detector, so not sure what you mean.

The Catholic Church also does not teach that there cannot be restrictions on immigration, it simply says that we should treat people with dignity while enforcing such restrictions.