Rory McIlroy has backed Tommy Fleetwood to avoid "falling into the trap" like he did when trying to handle the pressure of playing in The Open in his hometown.