Newton's laws are invariant under time reversal transformation $$ t \longrightarrow -t $$ for time-independent potentials.
But Hamilton-Jacobi equation is too an equivalent description of classical mechanics which is not invariant under this transformation because of being 1st order in time.
Where is the fallacy?