If your boat is on the hard, you will be much safer unstepping the mast. Do NOT go up the mast if the boat is on the hard, unless you're using a cherry picker crane or platform lift to do so.
I see folks go up the mast on the hard all the time. If you go straight up, what's the problem?