What is the meaning of [be just before you’re generous]

You should make sure all your debts are paid and other obligations met before you start giving money away or living extravagantly.