Year, Make, Model?
There is supposed to be a delay circuit to keep that from happening. Sometimes in the thermostat, sometimes in the A/C unit itself.
A quick possible fix is to remove the thermostat, unplug the wiring for 5 minutes, then re-plug and refit the thermostat. This will reboot the microcontroller in the thermostat.
Like all computers, they get wonky from time-to-time.
2019 Coachmen Freedom Express 192RBS
2015 T12RBST Flagstaff Hardside
Disclaimer: The actual value of my "Two Cents" of advice varies just like a bitcoin.