The law is not unfair, you just have to wait your turn so we can account for all the ppl in the country.
Where did you get such a law? US doesn't have it, that's for sure. You must be talking of some other country.
If you are a Mexican without any advanced postgraduate degree or other unique skill, and have no direct US-citizen relatives (as in father/mother, brother/sister, son/daugther, second cousins don't count), I don't see any loophole in the US law, as it currently is, that would allow you to come in legally. There are, actually, a few other categories, such as relatives of legal immigrants, etc., but their members would do better to go into deep freeze right now, since chances of getting through the queue in their natural lifetimes are pretty much zero. Still, for the vast majority of those who come illegally even that is not an option.
Create a queue in which everybody would be able to wait, and make the waiting time commeasurate with human life expectancy, and you'd sharply cut down on the flow of illegal migration. But that would requre a huge change in the US migration law that nobody is even proposing now.