Transition between extinction and blow-up in a generalized Fisher–KPP model