Either take the crabs or the snails out of the tank.
If you've noticed, hermit crabs need other creature's shells, as they don't form their own. How do they get these shells? They kill and eat snails, even if the shell proves to be too large/small for them. Get rid of one or the other.
As...