When a rectangular panel is subject to an eccentric load or a lateral load, it tends to deform into a parallelogram with one diagonal shortening and the other elongating. Theoretically, it is sufficient to brace along one of the diagonals (the one in tension). If one diagonal is only allowed to brace inside the rectangular panel, it should be not braced in the diagonal in compression because under severe lateral loading the diagonal may buckle leading to failure of structure.
However, in actual situation lateral loads may come from both sides of the panel and hence it should be braced in both diagonals.