What we are taught influences how we grow. Paul sees that some teachers in Ephesus are teaching wrong doctrine and so instructs Timothy to put a stop to it.
The bottom line is that only the gospel of Jesus Christ saves so only the gospel should be preached.