There is no way to avoid it.
But you might be able to find something that will help you out of your predicament.
Maybe you can make the snake spit you out.