Somehow, he never got into trouble with the law. Apparently it wasn’t a good idea to upset Mr. Moser! He could be a bit of a dictator, but a benevolent dictator– he did ask the people of Schaffhausen to vote on his plans.
He held a vote for the dam, and I don’t think he would have built it without their vote. Which makes him quite democratic, and unusual from a 19th century perspective. Ultimately, whatever his defects, he was a great benefactor for the town– people respected that.