If you're working on an hourly basis, you can ask the client to sign a retainer agreement and have them make an up front payment into an escrow account that you draw from as you complete work hours. It's less complicated to implement than it sounds. When the account gets low, warn the client and ask them to make another retainer payment, and if the account gets to zero, cease working on the project until the retainer account is topped up again.