Right. Of course borders can be closed. Just try to sneak into Saudi Arabia.
Saudi Arabia is the most shameless and hypocritical country in the whole world. First they triggered a civil war in Syria, by arming the Al Nusra Front and the ISIS. And when people started fleeing from Syria, they refused to let anyone inside their country.