Steaming is the preferred method for cooking crab because it helps to keep the crab moist and prevent it from drying out. Boiling can cause the crab to become overcooked and tough.