One thing you can do if there is a ton of them is to walk towards shore and let them get as close to the shore as they can, then move behind them, the go right onto land and die

More Cnidaria Encountering Tips