crab (n.1) Look up crab at Dictionary.com
crustacean, Old English crabba, from a general Germanic root (compare Dutch krab, Old High German krebiz, German Krabbe, Old Norse krabbi "crab"), related to Low German krabben, Dutch krabelen "to scratch, claw," from PIE root *gerbh- "to scratch, carve" (see carve). The constellation name is attested in English from c. 1000; the Crab Nebula (1840), however, is in Taurus, the result of the supernova of 1054, and is so called for its shape. French crabe (13c.) is from Germanic, probably Old Norse.
crab (n.2) Look up crab at Dictionary.com
"fruit of the wild apple tree," c. 1300, crabbe, perhaps from Scandinavian (compare Swedish krabbäpple), of obscure origin. The combination of "bad-tempered, combative" and "sour" in the two nouns crab naturally yielded a verb meaning of "to vex, irritate" (c. 1400), later "to complain irritably, find fault" (c. 1500). The noun meaning "sour person" is from 1570s.