I wouldn’t risk it either. Immigration at JNB can take painfully long, especially if you arrive around peak time. South Africans are also not the most courteous when it comes to “I have a flight in xxx minutes. Can I please get through?”
I would try to catch a later connecting flight, 2-3 hours should be much safer.