I believe its much like crickets when you attempt to hand feed them, its a defense mechanism to attempt to be released from a predator. My guess is it tastes bad, but Melon my Yemen doesn't care.
The shipping/transport ban doesn't care if its an egg, larvae, or an adult...if any happen to get released and survive they all become crop pests eventually. Its the species that is banned from transport not the life stage.