Afterward, the crab turns around and uses the smaller pincers on its other legs to tear out the flesh inside the coconut and transfer it to its mouth. It eats mostly fruit, although it will eat nearly anything organic, including leaves, rotten fruit, dead animals, tortoise eggs, and the shells of other animals.