Here's an idea I think may work if you're looking for instant real-time feedback you're going the wrong way...
1. Add a fence on at least one side of your track (or just an invisible sprite)
2. Add a unique sprite on the left and a unique sprite on the right side of your car.
3. Assuming the wall you added will always be on the left if you're going straight - Every tick check if the left side sprite on the car is closer to the wall than the right side sprite.
I would think the left side of your vehicle should always be closer to the left side of the track if you're going the right direction, right?
Of course you can add extra layers of checks like if the right side is closer for more than X seconds, or elevation checks if your track overlaps...etc. this might prevent some glitches.