Your loss is capped at the total premium you paid for both legs. That happens if the price lands exactly at the strike for a straddle, or stays between the two strikes for a strangle, at expiry. You can’t lose more than that as a buyer.