Your teammates are your colleagues. You form a team in which all members are equal. Referees are there to maintain discipline and Fair Play. Always accept their decisions without arguing, and help them to help you enjoy the game more. Officials are also part of the game and must be respected accordingly.
Spectators give the game atmosphere.
They want to see the game played fairly, but must also behave fairly themselves. Nobody wins all the time. You win some, you lose some. Learn to lose graciously. Don't seek excuses for defeat.