Adding 「な」 to the verb dictionary form makes a strong way to forbid something. You see this form when talking to people you are close to or younger people, and on road signs. To say it politely, use 「〜ないでください」. A common mistake is adding it to the ない-form and saying 「食べないな」.
Examples
ここでたばこを吸うな。
Don't smoke here.
まだ心配するな。きっとうまくいくよ。
Don't worry yet. It'll surely work out.
Practice
1. 工事をしているから、そこに( )。
「動詞の辞書形+な」 shows a strong ban. 「入りな」 is the same as 「入りなさい」 (come in), which is the opposite meaning.
2. 人がいる前で、そんなことを( )。
The prohibitive form adds 「な」 to the dictionary form. You do not add it to the ない-form and say 「言わないな」.
3. お客様、こちらには車を( )。
「〜な」 is a strong way of speaking, so it cannot be used with customers. To ask someone politely to stop, use 「〜ないでください」.
4. Put the words in the right order.
絵を / 借りた / かくな / 本に / ぜったいに
Show answer
借りた本に、ぜったいに絵をかくな。 Put 「動詞の辞書形+な」 at the end of the sentence to forbid something strongly.
5. Is 「ここで写真を撮らないな。」 used correctly?
The prohibitive form attaches to the dictionary form, not the ない-form. 「ここで写真を撮るな」 is the correct form.