
Gamble on doing
Calculated Risk
Deciding to do something despite knowing the risks involved because success would be very beneficial. 
Not Literal
Although 'gamble' often involves betting money, in this phrase, it's more about taking a risk in general. 
Potential Gain
There's usually a clear, desirable outcome the person is hoping for by taking this risk. 