Alexander Fraser Tytler said this quote

A democracy cannot exist as a permanent form of government. It can only exist until the people discover they can vote themselves largess out of the public treasury. From that moment on, the majority always votes for the canidate promising the most benefits from the public treasury, with the result that democracy always collapses over a loose fiscal policy--to be followed by a dictatorship.