If you put it in the freezer when you are alive and keep the temperature below zero degrees Celsius, it is edible, but the taste is not as good as fresh. There are related quick-freezing equipment on offshore fishing boats, and the fish can be quickly frozen and kept fresh for a long time.
But have you considered the feelings of crabs by freezing them to death alive?