Optimal condition for non-simultaneous blow-up in a reaction-diffusion system