I have offered my observations about possible causes and solutions to this problem. Any person attacking an official should be prosecuted to the full extent of the law. Some abuse is preventable, and young or inexperienced officials should be taught ways to protect themselves. I believe that an official who dresses and acts professionally on the field or court, who is required to complete training in rules and mechanics, and is mentored by an older, more experienced official until able to work alone is at far less risk of being victimized. I also strongly favor programs like the one at my son's school which works with parents and coaches to define expectations for behavior at games.
Education is a wonderful solution to many problems.
In other words, do your job and pick your battles carefully. Save the ejections and technicals for the really serious problems. You don't gain respect by overreacting to the little things. As a parent, I have had to learn that lesson. If you jump on on every little thing, you end up with ongoing resentment and no cooperation.