If it was a dog, I would spray it with bitter apple, but I am not sure how you train a hermit crab to stop gnawing on the furniture.