をするな

don't do

→ を
phrase Common #4,849
don't do A blunt, forceful way to prohibit an action. It follows a noun or noun phrase, such as 邪魔をするな (don't get in the way). The examples with 惜しいことをしたな are a different construction and do not contain this prohibitive phrase.
JA: そんな危険なことをするな。
EN: Don't do something so dangerous.

余計な事をするな

Don't do anything unnecessary!

— さらば、わが愛/覇王別姫 (1993)

僕の告げ口をするな

Don't rat me out.

だからそいつらマネをするな

So don’t imitate them.

無茶なことをするな

Don’t do anything reckless.

そんなにお金心配をするな

Don't worry so much about money.

人のあらさがしをするな

Don’t nitpick other people’s faults.

俺の心配をするな

Don't worry about me.

無駄遣いをするな

Don't waste money.

ムチャをするな

Don't overdo it.

— ほんとうのピノッキオ (2019)

友達のあらさがしをするな

Don't look for faults in your friends.

失礼な言い方をするな

Don’t speak so rudely.

— グエムル -漢江の怪物- (2006)

彼にああいう口の利き方をするな

Don't talk to him like that.

間食をするな

Don't snack.

口答えをするな

Don't talk back.

— マレーナ (2000)