Help!!!

How do u get around all the bad beats in this league.  I went allin with poket AA against AKs and
lost to a royal flush, one of the 1st out!!!   What can u do to avoid this???

Thank you in advance, David