The best way to avoid over-revving if you are driving a manual transmission car and realize that you have under-shifted is to jam the clutch pedal in. When your clutch is depressed in a manual car it prevents the wheels from being connected to the engine.