It's often used to describe a situation where there are only two possible outcomes: complete success or complete failure.
For example, you might say:
* "I'm going for it, tout ou rien." (I'm going all in, no turning back.)
* "The gamble was a tout ou rien proposition." (The gamble was either going to be a complete success or a complete failure.)