If you do anything, you’re going to get criticized. There is no perfect solution to any real problem that maximizes everyone’s happiness. There’s no decision that you can make that won’t be second-guessed by someone who is forced to deal with the consequences.
The only way to avoid criticism is to do something that anyone else can do. Be a cog in a machine, do exactly as you’re told, and never have the need to take responsibility for anything. Of course this also means you’ll never really accomplish anything either.