Why do you say that the dead crab can not eat it? Because the crab has a problem with its hepatopancreas/midgut glands. Crabs are small and have a high water content, and when they die, the midgut glands fall apart quickly and the digestive enzymes in them break down the crab meat. The other thing is that the intestinal gland is relatively easy to enrich heavy metals, and after it is rotten, the heavy metals will also come out to produce pollution.
Crabs grow in rivers and lakes, and like to eat small creatures, water plants and decaying animals, crab body surface, gills and gastrointestinal tract are full of bacteria, viruses and other pathogenic microorganisms. If you eat crabs raw, pickled or drunk, you may be infected with a chronic parasitic disease called pneumonic schistosomiasis.
When a crab is dying or dead, histoxic acid in the crab's body breaks down to produce histamine. Histamine is a toxic substance. With the prolongation of the time of death, the crab body accumulates more and more histamine, more and more poisonous, even if the crab is cooked, this toxin is not easy to be destroyed
I hope it can be of some help!