This is an especially big danger if you're talking about a gang that currently deals mostly drugs but also smuggles forced prostitutes over borders on the side. Take away the drugs and they're likely to expand the side business.
The Mafia was all about prostitution, gambling, and protection rackets. The prohibition gave them a business where you could make far more than all the others combined, and all you needed to do was to kill people who got in your way.
Is that a counter argument? There are bad actors (in society). Some bad actors have social, moral, physical, intellectual barriers that prevent them from acting WORSE. Raising the social barrier (marketplace) isn't any different than the social barrier (legality). If you rather not compete bad actors out of the market because of what they might do, why legally punish them out of the market? Why bother trying to stop them at all?
Allowing a marketplace for murder or human trafficking (or the other nefarious things organized crime gets up to) allows the most efficient and effective bad actors to prosper, as markets are designed to do. But society doesn't want bad actors to prosper, it wants them prevented from acting badly.
Gangsterism is funded by various econmic oppornities which for one reason or another are illegal. Some things like assasination and extortion need to be illegal by their very nature.
But by passing laws that make new things illegal, we increase the amount of resources available to fund criminalality.
https://www.wsj.com/articles/bloody-struggle-erupts-over-avo...
Sure, we can't possibly legalize murder for hire and still have a functional society, but how much profit can you really make filling those kinds of contracts, especially in a world with no illegal drug trade and no human trafficking because hookers are now clean and legal? They can try to expand side businesses all they want, but some of them have a natural cap to how much demand there can be.