Whether it is as overt as a soldier refusing to follow an illegal order knowing they are risking court marshal, or as clandestine as mid-level bureaucrat slow-walking damaging policies, or people actually voting in local-to-national elections.
Democracy is not a passive form of government.
Judiciary has more power than you'd think too. It's just that they try to act in good faith and generally do not want to throw people into civil contempt that often. The SCOTUS can even re-re-interpret the presidential immunity that Trump has abused to a pulp if they are angry enough. That was their call after all.
Will they do this? Highly unlikely, at least for Trump. I wouldn't be surprised if Musk flies too close to the sun, however.
While maybe not practical for the president, but at least for various cabinet Secretaries or Directors: if they do not follow court-issued orders could be found in contempt and jailed until the corrective orders are implemented?