You are not to touch it = 1) mega-imperative- touch it and die. 2) Often used in formal language
be + infinitive- can be used as a future, like going to or the present continuous, again often used formally, but not exclusively. You're reading of the meaning is correct, but the original sentence is perfectly correct.
- For Teachers