In my lecture notes for stochastic processes we define measurable functions as
Here $\mathcal{A}$ is a $\sigma-$algebra on $\Omega$. However, when I read on other sites (e.g. Wolfram), the set that should be measurable is defined in another way, specifically the inequality sign should be flipped. Is the definition of measurable function incorrect in my picture? Or is there some detail that I've missed?

$\{\omega: X(\omega) \leq x \} \in \mathcal A$ for every real number $x$ if and only if $\{\omega: X(\omega) \geq x \} \in \mathcal A$ for every real number $x$. So the definitions are equivalent.
Proof is based on the following: $\{\omega: X(\omega) \geq x \}=(\bigcup_n \{\omega: X(\omega) \leq x -\frac 1 n\})^{c}$ and $\{\omega: X(\omega) \leq x \}=(\bigcup_n \{\omega: X(\omega) \geq x +\frac 1 n)^{c}$.