Well-posedness and Ill-posedness for the Nonlinear Beam Equation