Placing TP above the last price for sell.

My strategy involves placing TP and SL simultaneously with the main buy or sell order. There is often a situation when the TP is between the limit order and the last price. For example, for a sell limit order, TP is below the limit order but above the last price. Such an order cannot be placed on the stock exchange. Could you tell me how to solve such a problem?