Let \( f: \mathbb{R} \to \mathbb{R} \) be defined by
\[
f(x) =
\begin{cases}
x^3 \sin x, & \text{if } x = 0 \text{ or } x \text{ is irrational}, \\
\frac{1}{q^3}, & \text{if } x = \frac{p}{q},\; p \in \mathbb{Z} \setminus \{0\},\; q \in \mathbb{N},\; \text{and } \gcd(p,q) = 1,
\end{cases}
\]
where \( \mathbb{R} \) denotes the set of all real numbers, \( \mathbb{Z} \) denotes the set of all integers, \( \mathbb{N} \) denotes the set of all positive integers, and \( \gcd(p,q) \) denotes the greatest common divisor of \( p \) and \( q \). Then which one of the following statements is true?