Between ' to not ' and ' not to' which one is correct

Both are correct, but they are used in different contexts.

"To not" is typically used when you are talking about avoiding doing something or not doing something. For example, "I decided to not go to the party."

"Not to" is typically used when you are giving advice or instructions. For example, "It's important not to touch the hot stove."