I would not buy the house if I couldn't come up with $5k.
Not saying I would necessarily bridge the gap or that I wouldn't do everything possible to keep the $5k in my pocket. But if buying the house means you have no money left in your checking account than I wouldn't do it