If South Africans fight in the IDF, they may be arrested or stripped of South African citizenship:
African country's citizens fighting for Israel in Gaza will be arrested upon return, foreign minister says
African country's citizens fighting for Israel in Gaza will be arrested upon return, foreign minister says