"to jump the gun" means to do something too soon, especially without thinking carefully about it
If someone running in a race jumps the gun, they start running before the gun has been fired to start the race.
Example: He started to play the violin before the conductor pointed at him, but later he apologized to the rest of the violinists for jumping the gun.