How long have you had the wrasse? Did it go through a QT process and was it inspected for diseases? How healthy are the other fish in your tank?
It's pretty common for people to blame emerald crabs for killing fish because they see the crab eating the carcass. While it's not impossible for an emerald crab to catch and kill a fish, it's not the most likely explanation. Emerald crabs are relatively slow, about an inch wide at most and have flat claws designed for picking algae off rocks. They're not bobbit worms or mantis shrimp. While emeralds can catch and kill a fish, they're not predatory and they're not designed to do so from an evolutionary standpoint. It would be pretty difficult for an emerald crab to ambush and kill a healthy fish that's many times its size, even if the crab was hungry. Now if the fish was sick or suffering from some internal parasite that was not immediately apparent, then the emerald might have a better shot. But, I think these guys get a much worse reputation than they deserve.
If you did not see the emerald ambush and kill the wrasse, I would not blame the death on the crab.
Cue Law and Order theme music.
Case closed. Bahahah