Once upon a time, vehicle manufacturers assumed people have common sense and know how to properly operate a motor vehicle. Then as time went on, they've discovered just how many idiots there are out there, so newer vehicles tend to have lockouts and safety mechanisms to prevent such things.
Still, its best to assume that no vehicle has any such safety features to prevent you from making either one of these mistakes.