Lewis Hamilton has been warned that his in-fighting with Charles Leclerc at Ferrari “is not good for the team.”