Traders often use hedge (opposing) positions to alleviate losses from a losing trade. There is no margin requirement for hedge positions, which means you can open an opposing trade on the same pair without this affecting your used margin.
Nevertheless, it’s advisable to avoid hedging when your equity is at a low level, as a widening spread might lead to a margin level of 50%. This is due to the fact that the profit or loss on Buy positions depends on the Bid price, while Sell positions are affected by the Ask price. Consequently, an expansion in the bid/ask spread could amplify unrealized losses or diminish unrealized gains, despite having hedged positions.
Furthermore, if you are already near the stop out level, fluctuations in the exchange rate between the trading pair or currency of the asset and your base currency can influence your unrealized profit and loss, potentially leading to a Stop Out. Spread widening is a common occurrence in times such as market open/close, in periods of high volatility as well as during big economic/political news that impact the markets.