sounds like the lower shift cable is worn , the shift interrupt should never trigger going into gear , only when coming out.
On dry land there is no load on the propeller (vs in the water) so it will nto trip the switch.
Take the lower shift cable off the shift plate - you should be ale to...