check to see if your fans are turning on, and your cooling system is working properly(thermostat, correct antifreeze to water ratio etc). i'm assuming you have a 4afe not a carbed car. sounds like the car is seeing the overheating condition and adjusting to save the motor.