If they really didn't wish to gain a strategic advantage in this war then let them sit this one out, or at least stay out of it for a specified period of time. That way the opposing realm will have time adjust its deployments accordingly.
That's not really possible. It's also ridiculously exploitable.