Re: is "need to not" grammatically correct?
Sorry, reference "need not" it means it's not necessary, but it's not forbidden.
You needn't worry. Everything is taken care of. -- There is no need for you to worry.
You need't go to the post office after all. I bought stamps on my way home. -- There is no need for you to go there.
It does not have the same meaning as "You need to not go" which means you must not go, you must avoid going.
I'm not a teacher, but I write for a living. Please don't ask me about 2nd conditionals, but I'm a safe bet for what reads well in (American) English.