1. Live crabs: For live crabs, consider using anesthetics or alcohol to render the crab unconscious before steaming. This will allow the crab to die without pain.
2. Dead crabs: If the crab is already dead, then steaming the crab will no longer be painful. You can put the crabs in a steamer and steam them on high heat to speed up the death process of the crabs.