Of course you can also tell people NOT to do something. (when you want to prevent them from walking on your lawn, for example.)
The negative form is: Do + not + base form
For example: Do not speak!
Don't smoke! Do not use superglue on your little brothers forehead! And don't walk on the grass!
(remember that do not and don't are the same thing!)