It depends on the circumstances if you are pirating illegally or legally. Since the game is not supported anymore on many occasions it’s considered legal. If your still not sure, if you have a physical copy of the game it’s perfectly fine to own a downloaded copy. If you don’t and it’s still an old game it should be legal. This is called abandonware