Crabs are omnivorous and will catch anything that they can get in their claws should they be lucky enough to catch a fish.
Whilst other crabs are better equipped to catch prey (such as teddybear crabs etc). If an emerald crab was to wander by and find a sickly fish then it will try and attempt to catch it.
I had a lovely Flame angel a few years ago that was completely healthy.. One moment it was swimming around the tank andminding its own business the next moment it had tried to swim through a very narrow crack between 2 pieves of liverock.. Something startled it i guess and it got its gill spikes caught in the rocks and could not go backward of forward. When i discovered this had happened it was already too late. My emerald crab had eaten its face off and killed it. (I only checked the tank moments before and then went to answer the doorbell).
This i might add is extremly rare and not usual behaviour for the crab, it merely wanderedin and found a fish in distress and did what it did naturally. I would not hesitate purchasing another emerald crab to be honest.