One thing that might help you work out the syntax here is to name your kinds of action participial phrases like “behaving irresponsibly” and “committing a crime” rather than noun phrases like “irresponsible behavior” or “criminal acts.” (The examples in the documentation have noun phrases, though.) That can help make sense of some of the formulations that work:
[code]Instead of behaving irresponsibly:
After committing a crime:
Instead of doing something when not behaving permissibly:
After an actor misbehaving:[/code]
(That last one got me here; “After an actor prohibited behavior” doesn’t sound like it makes sense, but “After an actor misbehaving” would.)
This isn’t a failsafe guide – it doesn’t explain why “Instead of doing something other than behaving permissibly” doesn’t compile – but it does look to me as though it makes your code look more natural when it does compile.