rebuke before all - publicly before the Church (Mat 18:15-17; 1Co 5:9-13; Eph 5:11). Not until this “rebuke” was disregarded was the offender to be excommunicated.
others ... fear - that other members of the Church may have a wholesome fear of offending (Deu 13:11; Act 5:11).