Please go to Customers>>Search Customer>>Edit>>More details>>Credit Limit>>Enter Amount>>Save.
The warning will be shown when the customer is exceeding the credit limit while creating the invoice.