Going "balls out" refers to governors on steam engines which used centrifugal force on a pair of balls to regulate the speed of the engine. At full speed the balls were out at the maximum.
Have you ever accidentally stood on a ball (football/dodgeball) and tripped? If you have you may have an idea where the expression comes from.
You trip really hard.