When attacked, it is important to act quickly, as you will not have long before you are shredded by the devil's teeth and claws. Your best chance of escape is not to get pinned down. If you are attacked, kick, stab or phaser the animal's abdomen or thorax. Always be wary of the head, as slime devils have a powerful bite and their heads are extremely tough and can ricochet projectiles and reflect phaser fire back at the attacker. The head can also provide an opportunity for attack: if you can reach the olfactory opening and attack it, the animal will normally retreat rather than let its sensory organ be damaged.
If you are pinned down, you have limited opportunities for escape. In the few seconds you have before it strikes, you must prepare yourself in a posture to reflect the attack as best as possible, then you must attack its olfactory sensor and attempt to break off as many of its radar appendages as possible. If you succeed in escaping, get to the coast as fast as possible.