Simple to do if you just declare them all legal
Cross the border illegally, but say the magic word “asylum” and abracadabra, you’re LEGAL
Ipse dixit
Yep, that's how it done.