This story from the Panchatantra deals with classic themes like betrayal of trust and friendship, disdainful conduct of a spouse, etc.
But the story has a more powerful moral. When faced with adversity, do not react in a knee-jerk fashion out of desperation. Instead, keep your cool and use your wit to deal with the situation. You will sail to safety just like Red Face, the ape in this story.