There's aluminum, and there's aluminum alloys. There are hundreds of different aluminum alloys, and depending on the alloying elements and their percentages, the cold and hot strengths and melting points are all over the map. There are extrusion and casting alloys. An engine designer will specifiy a head alloy that will take millions of repeated pressure cycles and high temperatures and corrosive combustion byproducts for thousands of hours without failing. For a piston, it also has to resist wear, so a different (high-silicon, typically) alloy is used, and that piston is designed to be cooled from under the head by oil flung off the crank and sometimes by oil squirt holes in the big end of the connecting rod, and a lot of the heat is also transferred to the cooler cylinder wall as well as into the connecting rod though the wrist pin.
Some of use have welded aluminum. It does not act like steel at all. Steel has a wide "plastic" temperature range, where you can work it easily as it's soft, and easy to weld. Aluminum is solid right up until it's not, and it doesn't give many clues as to when that is. It doesn't start glowing red, for instance. It just suddenly slumps or drips. Tricky stuff. It does lose considerable strength as it gets hot, though, but the numbers I see while Googling the properties of typical casting alloys tell me that a 500°F redline probably leaves a decent safety margin. Heads don't melt that easily. As others pointed out, the elevated temperature promotes detonation as the complex, detonation-resistant fuel molecules break down during compression and turn into auto-ignitable compounds. Detonation produces big pressure spikes that blow the head off the cylinder. Or pull the cylinder off the case.
The makers of a lot of cheaper aluminum products often use an aluminum-zinc alloy. The presence of the zinc adds hardness and strength but also lowers the melting point dramatically, even below the melting point of either zinc or aluminum by themselves. Lots of door handles and other complex shapes are cast from such alloys.
7075, a really strong aircraft aluminum alloy (but NOT cheap) uses zinc, but not in critical engine parts. Airliner airframes have a lot of 7075 and other 7XXX alloys in them. The typical spam can uses plenty of 2024, a copper-alloyed aluminum. It's strength is good (less than 7075) but it corrodes very easily, which is why the skins are coated with a layer of pure aluminum, which protects the alloy from corrosive compounds, and it's why you don't want to go sanding your airplane. That thin skin has only 2% of the skin's thickness in that layer of pure aluminum on each side. Oure aluminum rapidly forms an oxide that helps shield the metal from corrosion. It's that oxide that the guys polish off when they want their airplane shining like a mirror. Do that enough and the layer is gone.
Everything in airplanes involves compromise. We could have cast-iron cylinder heads, but they'd be harder to air-cool and they'd be heavy, and the fins would crack easily.