what would hapen if right after the engine the exaust gas went to an intercooler and then to the turbine???
Cooling any gas down increases its density and, therefore, inside a closed pipe, its pressure decreases. Less pressure means less gas velocity. Less velocity, in turn, means less boost. With your approach, you would be wasting the exhaust's kinetic energy instead of using it (which is what the turbocharger was meant for, originally). Therefore, if you want the turbo to work cooler, you have to cool it directly.