The levels work according to the One-Cancels-Other logic. In case Take Profit triggers -> Position closes -> Stop Loss gets canceled and, vice versa, If the position is closed at the Stop Loss -> Take Profit will be canceled.
Look first / Then leap.