You should avoid their bid’ah and sins and not help them doing it but you also should obey them and be respectful with them when they are not involved in these things. You should try your level best to see which way is the best for gaining their hearts.