The crabs' numbers have been depleted in recent years because of a loss of habitat and their value for testing new medicines.