Let's look at the sentence: To escape danger, an octopus squirts a cloud of black ink and swims quickly away.
This sentence is correct! It has a clear meaning and good grammar.
- Subject: "an octopus" (who)
- Actions: "squirts" and "swims" (what the octopus does)
- Purpose: "To escape danger" explains why the octopus squirts ink and swims away.
- The words are in the right order and the verbs match the subject.
So, no changes are needed. It's a well-written sentence!