At what point does the account begin to sell off the margin account in the event of a decline?

Hey, I’m new here and wanted to know when the algorithm will start to sell off stocks that were purchased using margin in the event of a decline. In other words, what’s the maximum percentage loss that a margin account can incur before alpaca starts to sell off the fund?