Second derivatives and higher are where you cannot treat the differentials as fractions anymore. This is because the first derivative separation of variables
$$\frac{dy}{dx} = f(x) \implies dy = f(x) dx$$
is a shorthand for the chain rule
$$\frac{dy}{dx} = \frac{\frac{dy}{dt}}{\frac{dx}{dt}} = f(x(t)) \implies \frac{dy}{dt} = f(x(t))\frac{dx}{dt}$$
where both sides can now be integrated with respect to the parametric variable
$$\int \frac{dy}{dt}dt = \int f(x(t))\frac{dx}{dt}dt \implies \int dy = \int f(x) dx$$
which is exactly where the shorthand consistently lands and lines up with the rigorous treatment by simple $u$ substitution. However, the chain rule for the second derivative even looks like
$$\frac{d^2y}{dx^2} = \frac{1}{\frac{dx}{dt}}\frac{d}{dt}\left(\frac{\frac{dy}{dt}}{\frac{dx}{dt}}\right) = \frac{\frac{dx}{dt}\frac{d^2y}{dt^2}-\frac{dy}{dt}\frac{d^2x}{dt^2}}{\left(\frac{dx}{dt}\right)^3}$$
which cannot be multiplied like a simple fraction as the original post does. This only gets more complicated for higher derivatives, so the same heuristic does not work.