Laptop Help

Ya i figured it was just overheating and would shut itself off to prevent damage. Do i need to take the laptop apart to spray the compressed air in it to clean or can i just spray it in the vent where the fan is?