Besides, while it is a country strength, it did and still do have a cost. Whether this cost is worth the benefit is something you can only answer if you have metrics to do so, and illegal immigration make it hard to have those metrics, or change your policy to adapt to your new situation.
People always see immigrations as being a moral issue first, but it really is not. It has strong moral implications by nature, but it's first a management issue. Just like eduction, science, etc.
I believe you can have only one of the two - open borders, or social safety net. Having completely open borders with generous social safety net is mathematically impossible, unless you want to discriminate against the newcomers by denying them the benefits (which is, again, a bad thing according to many people).