Why is the meaning of -na different in the two sentences below?

これを食べな - Don't eat this

ここに座りな - Sit here
CC BY-SA 4.0
2022-04-09T00:46:15.883
94053
2022-04-09T11:52:09.330
39559
question
meaning
Why does the ending -な sometimes translate to "do" and sometimes translate to "do not"?