No, it isn't. The sentence "Don't tell me what not to do" means that you should not tell me the things I should not do. Maybe I know what is wrong to do, what I should not do, by myself, and I don't need you to tell me that information.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.