The Proteas were only chasing 148 to win but got into all sorts of bother before tail-enders Kagiso Rabada and Marco Jansen saved the day