That’s totally inaccurate. You can definitely divide by fractions. For example,
$$\begin{align} 0.5x &= 5 \\\ \frac{0.5x}{0.5} &= \frac{5}{0.5} \\\ x &= 10 \\\ \end{align}$$
It’s all the same.
I’d also like to add that “don’t divide by fractions” doesn’t make any sense when you have irrational numbers. For example, if $\pi x=2$, how, are you supposed to solve for $x$? You can’t divide by $\pi$ since it’s not an integer.