Because obviously letting them in by the tens of thousands isn't working.
How could you determine that turning them away would work?
What would be your solution?
Getting our troops out of any country that isn't a military threat to our homeland. To stop agitating an entire region of the planet for our own business interests.