Seriously, people. By far the easiest way to prevent european imperialism is to have asian imperialism that keeps the europeans out. Either western asia, like otls arabs on the east coast of africa, or south asia.
One might say the mughals were south west asian imperialism into india.