What do you mean everyone has credit and the marshal has punishment?
"The credit belongs to everyone, and the crime belongs to the marshal" means: if there is credit, it is for everyone to enjoy; If a crime is committed, it will be borne by the marshal. Simply put, it is sharing weal and woe.
If the person who said this is the marshal himself, he can show the selfless spirit of the marshal, and he must be a good marshal worthy of everyone's support; If the person who said this is a soldier, then this person is a typical selfish person.