I don't get it? Even if he's "just a guard" he's acting under the order of the second prince. The viscount is acting against the prince by doing this. As a guard his duty is to protect the kingdom, and that means arresting a noble. If nobles can just cancel out a royal order, then no noble would ever get arrested.