Separate continuity implies measurability
Hint: take $f_{m,n}(x,y):=f\left(\frac{\lfloor mx\rfloor}n,\frac{\lfloor ny\rfloor}n\right)$, where $\lfloor t\rfloor$ is the greatest integer lower than $t$. As $f_{m,n}$ takes only countably many values, it's measurable.