Coconut crab is an animal protected by the state. According to the relevant provisions of the People's Republic of China and the Criminal Law of the People's Republic of China, it violates the state regulations on animal and plant epidemic prevention and quarantine, and illegally fishes and kills animals and plants under special state protection. If the circumstances are serious, it will be punished by law. Therefore, eating coconut crabs is illegal in China.