I think they meant, how you would know that your own charger is save, when they are malicious from the factory.
The answer to that question is to buy from a reputable seller/manufacturer or/and use a cable without data lines (for example Apple MagSafe).