There are many interpretations of that line, and without the context it is in it is difficult to see which one is correct.
Here's one:
"Jesus' statement highlights the principle that salvation is a gift from God, not earned through good deeds or accumulated wealth. It emphasizes the need for humility and faith, rather than relying on material possessions or social standing."
That seems like, uh, motivated reasoning. Maybe if it were "for even a rich man" or "for a man, rich or poor," or something, but it's pretty clearly positioning riches in contrast to entering heaven.
It amazing how the wealthy and powerful try to twist a tale of the life of someone so openly socialist to instead claim it’s a story championing wealth.
The general theme of “don’t worry about injustice now, things will be right after you die” is of course very strong to preserve the wealth. If you believe you will get your just rewards after you die, there’s less need to fight for an equitable world today.