Radical male homosexual underground nightclubs are rumored to have holes in the bathroom stall walls, through which a horny man would shove his erect penis, in hopes that a stranger in the next stall would give him fellatio. The hole was nicknamed the "glory hole". The horny man literally goes "balls to the wall" and hopes for glory. Participating so carelessly in a sexual act with a stranger who also participates carelessly in sexual acts with complete strangers is an profoundly extreme act in an age so rampant with venereal disease. The term is now used colloquially to refer to taking ANY action to its most extreme limit. The phrase is now synonymous with "taking it to the extreme limit" or "going as far as you can go" or... "going balls to the wall".
I was so horny and alone in the stall. I had to go balls to the wall and hope for glory!