A warning can make danger impossible to ignore without making a way out possible.
It can name what threatens you; it cannot, by itself, make a safe option available. When one is available, the warning may help you take it.
Knowing the danger is not the same as being able to leave.
