The engine computer will not allow the engine to spin past the redline. So if you're in 4th and step on the gas, it (depending on your speed) may downshift and upshift to 4th, then top out at redline. You'll probably notice the rev limiter step in and cut the gas.
Try it sometime.. won't hurt much to find out.