I think this is kinda basic, but say I have a random variable $X$, is the probability $P(X \leq a)$ the same as $P(f(X) \leq f(a))$ for any real-valued continuous function $f$?
This holds only if $f$ is monotonically increasing. If $f$ is monotonically decreasing, then $P(f(X)\leq f(a)) = P(X \geq a)$. For instance, if $f(x) = -x$, and X is a normal die roll, then $P(X \leq 5) = \frac56 $ but $P(-X \leq -5) = \frac16$. If $f$ switches between increasing and decreasing, then it's even more complicated.
Note there's also the trivial case of $f(x) \equiv 0$, in which $P(f(X) \leq a)$ is equal to 1 if $a \geq 0$ and 0 otherwise.