You’re fine. The computers in modern cars are designed to cut the fuel off as the engine approaches red line.