Even simpler is to increase the compression ratio for a high altitude engine.
Then the engine must never be used at sea level with full throttle.
This was done in the old days.