
Bet the farm/ranch on something
Metaphorical Use
The phrase isn't about actual farms. It means risking a lot on one chance. 
High Stakes
Using the phrase implies the outcome is very important to the person. 
Figurative Risk
Even if there's no physical farm, it expresses taking a significant risk. 