Even after you have done your best and some more, you still may be criticized by some.
What do you do? Keep doing your best and leave the rest. Do not do your best because you will not be criticized; you do your best because that describes who you are and it is the right thing to do.
You can, of course, be objective about working smarter and always being open to being more efficient and effective. When criticism comes be open to learning from it, decide what is worth implementing then move on to focus doing your best.
You always win when you do your best.