Lure them onto land. Once you do that, they can't attack you.

More Cnidaria Encountering Tips