The phrase "what not to do" is the opposite of "what to do". You use this in situations where you want to point out an action that someone shouldn't do:
I appreciate them talking with me about it and explaining what to do and what not to do.
You should pronounce this phrase with strong stress on the word "not". When you write it, you should italicize it.