We have the module sale_credit_limit that has a validation and raise a warning when you confirm a sale if the customer has exceed the amount of credit over the limit you have set.
When the sale is a refund credit note it shouldn’t be necessary to accept the warning, so you will always want to have a refund from your customer.