What is the meaning of [Keep your mouth shut and your eyes open.]

Speak only when necessary and remain alert and observant at all times.

Example: We’re in a hostile territory. So, to avoid problems, keep your mouth shut and your eyes open.