How would I stop my press input from being used twice?

What I created was more of a toggle sprint to work with the Gamepad’s left analog stick button and space bar.

I just noticed when my wife was testing it out on the Gamepad she pressed the sprint button a ton of times so she keeps running and stopping, I was just wondering if there is a way block input until you speed is under 25.

I don’t mind have a full toggle system for the space bar but not for the Gamepad.

Thank you!