"Between every two rational numbers there exist infinite irrational numbers and between every two irrational numbers there exist infinite rational numbers.
Is this statement correct? If it is, then doesn't it contradict Thomae's function continuity at irrational numbers?
Between every two distinct rational/irrational numbers there are infinitely many irrational/rational numbers [respectively] - this is true.
But this does not contradict the continuity of Thomae's function at the irrational points. At an irrational number $r$ the value of the function is $0$. At nearby rational numbers the value is non-zero, but by restricting the interval $(r-\delta,r+\delta)$ by making $\delta$ sufficiently small, we can make sure that the only rationals in the interval have denominator $q\gt \frac 1{\epsilon}$ so that the value of the function at each of the infinitely many rational points in the interval is as small as we choose.