The rapid transition from shallow to precipitating convection as a predator-prey process