No horse either but here is an attempt (ignoring criminal record as you say): Opening the border and letting her rip is clearly not sustainable in the medium term. So you try to make it (reasonably) hard to get in incl. turning people away at the border.
Once they are in (incl illegally so) you concede you have lost on this instance. Now you admit that forcefully removing immigrants carries too high a cost (literally + damage in the communities you remove the immigrants from + your humanitarian image). So you don't.
Somehow that balance seems really hard to get right and edge cases (criminal record) matter.
I'm not a big fan of this solution since it rewards people who knowingly did something that is illegal. It also allows businesses to take advantage of these people, unless you decide to give them legal status immediately. However, I agree with you that getting the balance right is really hard and that deporting people, esp families with kids who grew up here and did nothing wrong, is very problematic.