Nonlinear 3D M3D-C1 Simulations of Tokamak Plasmas Crossing a MHD Linear Stability Boundary