Remember, other than the officials and maybe security, everyone else in the gym is watching the game with their
eyes and their heart. They have put their sweat and hard work into the game and want to do well and win. When things don't go according to plan, sometimes, they (includes parents and players) might not see clearly and their judgment may become clouded - they have to vent somewhere.
Officials on the other hand are supposed to watch the game with their
eyes and their brain and are not supposed to have a vested interest in the outcome. We remain neutral and unemotional.
Get used to it and let it go. Next week when they win, they'll love ya just as much as they hated you last week!