Jump? If you're going towards a cliff and you can't stop, jump and keep holding back. You'll jump out over the cliff, then change directions mid-air and fall back safely on the ground. Same thing with goombas, you can probably land on them too. Or just lightly jump and come back down on top of them.
Come on, this is Mario Tactics 101!