De Villiers fifty helps SA set up daunting target