Existence and nonexistence of global solutions for the generalized IBMq equation