Really hard to tell from a pic, but typically a crab molt will have a small "flap" in the back of its shell where it walked out of the old shell. Easy enough to tell though, as others stated, a molt is hollow, and a dead crab would be the full body with guts.