You can turn this off in the configuration file. Go to the config folder (probably C:/Users/YourName/AppData/Roaming/.minecraft/config) and find NEI.cfg. Open it with Notepad, and change the line that says lockmode=0 to lockmode=-1. This will unlock the option to switch to cheat mode in the options menu in-game.