In order to prevent that you need market makers, and market makers don't work for free.
The New York Stock Exchange for example licences only a few market makers, who then have the exclusive right to make markets for the stocks listed on the NYSE. But in return they prevent the extreme pumps that you see on crypto exchanges.
Most crypto exchanges don't want to pay for having market makers, and occasionally they'll offer a maker/taker reduction in fees but it isn't enough to compensate the market maker for the risk. So they go without market makers.
Its only about price fixing. Just simply don't open trades at random price (finalizing order by order). Open them with fixed price calculated from all orders that are on market. That's it. Despite market makers on NYSE (and any other regulated stock exchange) you also have build in limitations that holds trades if volatility is too big and opens them when amount of supply and demand is balanced. But I'm not talking about that. That's important during regular trading. I'm talking about first trades after new coin listing.