They would have to sail or fly directly from their home country. If they set foot in any other country on the way they would not qualify.
I’m sure that they would have to be asking that other country for asylum first...if they are in a safe place, we have no reason to go to lengths to take them...Mexico gonna be hardening its borders big time to keep the riff-raff out..