It depends on what you mean by crime, income, etc. and what factors you consider - but as you note, people often start out desperate, and then escalate because crime doesn’t really solve the desperation. Some crimes do produce good income, relative to the same effort in a legal occupation, but most don’t. And in many (but not all cases) the people involved can’t actually get equivalent legal work. So it is difficult to compare.
However, [https://journalistsresource.org/economics/illegal-income-cri...] and [https://www.sciencedirect.com/science/article/pii/S004723522...]
Are interesting reading.
For the most part, crime doesn’t pay when you add all the costs involved. Society works very hard to make it that way.
Unless you’re pimping, higher up in organized crime, etc.