Step 1: Understanding Section 78 IPC.
Section 78 IPC protects any person (including a bailiff) who acts strictly under the authority of a court order that appears valid, even if the court later turns out to have no jurisdiction.
Step 2: Application to the question.
Since the bailiff acted purely on the face of the order and without personal fault, Section 78 shields him from criminal liability.
Step 3: Conclusion.
A bailiff is exempt from punishment if he executes the order in good faith.