Whoever knowingly and willfully obstructs, resists, or opposes any officer of the United States, or other person duly authorized, in serving, or attempting to serve or execute, any legal or judicial writ or process of any court of the United States, or United States magistrate judge; or
Whoever assaults, beats, or wounds any officer or other person duly authorized, knowing him to be such officer, or other person so duly authorized, in serving or executing any such writ, rule, order, process, warrant, or other legal or judicial writ or process—
Shall, except as otherwise provided by law, be fined under this title or imprisoned not more than one year, or both.