At 5000 RPM you might be surpassing the Rev limiter in which would sound an alarm on fuel injected engines.
On top of the engine there should be an engine informational type sticker with the RPM range mentioned for your engine model... What does yours show?
Also note that your RPM gauge might...