Proteas move to the top of the table and put one foot in semi-finals after pulling off nail-biting win over Pakistan