I was always taught that the $dx$ at the end of an integral is just notation that 1) tells you which variable to integrate and 2) acts as an end to the integration like a full stop (period).
But I see people putting the $dx$ on fractions, moving it to the other side of the equation, and other stuff acting like it's a number. You wouldn't interact with the notation of, say, $\sin(x)$ in this way. It seems rediculous the thought of interacting with the notation as if they were numbers like saying the "sin" can be moved to the other side in $\sin(x)=3$ resulting in $x=3/(\sin)$. SO why can you interact with the $dx$? Thanks, by the way!