The best way to protect yourself is to use limit orders when placing an order to buy or sell a stock or an exchange-traded fund. (See How Your Buy and Sell Orders Get Filled for more.) Look at the bid-ask spread and set your price limitat the bid for selling a stock and at the ask for buying a stock.
Some structure would have to be maintained, such as capping the borrowing limitat 50% of your retirement savings, and initiating a public awareness campaign on the drawbacks to early withdrawal.