It's not a road anyone wants to travel. But by accusing Khatami of treason and spying for the West, we learn two things:
1. Ahmadinejad is probably very sane. But, if it can be taken at face value, he's rather paranoid. If not, clearly his notions of how diplomacy works are a bit off.
2. I would suggest that this gets viewed through a lens suggesting that the Mullahcracy is in serious trouble, and that the slow cementing of military-intelligence officers in the corridors of power is not long for this world, to be replaced with an outright military state.... aka, a Shia version of a Bathist islamofascist regime.