The first range of risk with a specific stop loss and TP. If you reach the second range, double the first range with a specific stop and TP of the first range
The second trade will be closed with a profit and the first trade will be closed with a small loss and the total transaction will be closed in profit.