Test on a knife-edge as Proteas take 211 lead into day four