Yet people risk their lives to go in illegally. Something doesn't track.
Its because, inequality is not the problem.
The problem is the ability to move between income levels. That coefficient used to the highest in the US. Rich people could and did go poor. Poor people could be rich.
That index was always the highest by far in the US, but now its decreasing. That's the real issue.
It can be simultaneously true that the US has a serious wealth inequality problem (and other serious problems), and that other countries have problems far more severe, causing people to want to relocate to the US.
i recommend investigating what the root causes are for most the undocumented immigrants coming into the US and why their countries are destabilized (hint: the cause rhymes with Shamerica)