2359. A surety who has bound himself with the consent of the debtor may take action against him, even before paying, if he is sued for payment or the debtor is insolvent, or if the debtor has bound himself to effect his acquittance within a certain time.
The same rule applies where the debt becomes payable by the expiry of its term, disregarding any extension granted to the debtor by the creditor without the consent of the surety, or where, by reason of losses incurred by the debtor or of any fault committed by the debtor, the surety is at appreciably higher risk than at the time he bound himself.