I know little of warfare, but from what I have read, "fraternisation with the enemy" has always been regarded as a serious crime; for very good reasons, one being security and the safety of the regiment.
The officers had their standing orders and to disobey these orders would be construed as mutiny.