The problem that exists where I live - Finland - is that a society that develops itself to a point where they are a first-world country where even the most unfortunate resident can enjoy a secure (if not good) life provided by the state can easily be taken advantage of by someone from a second world country.
Once you have enough people taking advantage of such a structure, the equation no longer works. Taxpayers resent immigrants taking advantage of the safety net without at least giving the trapeze a shot.