If we have a hard brexit and an independent Scotland part of the EU and England are doing their best to keep the foreigners entering their country at their borders it would be stupid to leave the back door open and let the foreigners come in through Scotland. They would need to close the door, passport control, a real border.