Topological materials have recently attracted considerable attention among materials scientists as their properties are predicted to be protected against perturbations such as lattice distortion and chemical substitution. However, any experimental proof of such robustness is still lacking. In this study, we experimentally demonstrate that the topological properties of the ferromagnetic kagomé compound Co3Sn2S2 are preserved upon Ni substitution. We systematically vary the Ni content in Co3Sn2S2 single crystals and study their magnetic and anomalous transport properties. For the intermediate Ni substitution, we observe a remarkable increase in the coercive field while still maintaining significant anomalous Hall conductivity. The large anomalous Hall conductivity of these compounds is intrinsic, consistent with first-principle calculations, which proves its topological origin. Our results can guide further studies on the chemical tuning of topological materials for better understanding.