The best way to get Age of Mythology is to buy it through a legitimate storefront.
It's an older title, so it frequently goes on deep discount during digital sales, and it's also included in some subscription game libraries. Those legal routes let you enjoy the game safely without the risks that come with unofficial downloads.