You're not an idiot. The issue you pointed out is known and is being addressed. The issue is just that the trigger that checks your money happens AFTER the actual payment. So you have to have $500 after paying to avoid a game over. A fix to the issue will be included in the next update which I'm hoping to have released within the next week.