AB De Viliers seals the win in perfect way for SA