Unless the fuel is highly oxygenated, like race or aviation gas, high octane won't harm an engine. In rare cases that require unusually rapid combustion, power might be reduced but it won't harm anything. Also, retarding timing is what one might do to make low octane work without pinging but is counterproductive with high octane fuels.
At least that's my understanding of how that works