Translation of German 'Achtung!'

At least in the movies its means “machine-gun fire imminent”.
In Germany, I saw it in a couple of circumstances where in English they would have used “Danger” or “warning”. Like in an elevator or a hot stove.

Any Germans care to clarify.