The warning said to stay away from the edge.

A notice that something bad or dangerous may happen.
The sign gave a warning about the slippery floor.
He ignored the warning and went outside in the storm.
The teacher issued a warning before the test began.
safety warning
weather warning
final warning
alert
caution
advisory
She received a warning about the storm.

A statement that alerts someone to a potential problem or danger.
He got a warning for speeding.
The teacher gave a warning before the test.
They issued a warning about the heat wave.
safety warning
weather warning
final warning
alert
caution
advisory