South Africa's under-23 side still has a chance of advancing to the quarter-final stages at the Tokyo Olympics.
David Notoane's charges suffered a 4-3 defeat against France on Sunday to be pitted at the bottom of Group A, while Japan claimed a 2-1 win over Mexico.
Sunday's result meant that South Africa is on zero points after two losses and boasts a negative 3-5 (- 2) goal difference.
After their two victories, Japan is first in the group, with Mexico and France each getting one win under their belts ahead of Wednesday’s crucial matches.
However, there is still hope for SA to qualify and all they need to do is beat Mexico by two goals or more, while Japan has to beat France in the other group match.
SA would then jump from the last position to second on the log, ending with three points, which is the same as France and Mexico.
In this scenario, South Africa would have a superior goal difference than France while they could end on the same goal difference as Mexico but would advance because of head-to-head results against each other.
South Africa take on Mexico while hosts Japan clash against France.
Both matches kick-off at 13:30 (SA time) on Wednesday.