Why 'Doubling Down Until You Win' Always Fails: The Gambler's Ruin Problem and the Mathematics of Martingales