Hint 1
Notice that when a number reaches nine, it flips back to zero. In other words, the numbers are on a loop. So, push the buttons as many times as you like. It won't mess up anything.
If you restart the puzzle several times and pay close attention to what each button does, the rules should become clear.

