Global existence and nonexistence for a parabolic system with nonlinear boundary conditions