That is the way I understood it, too. The difference is in whether it is before or after the crime is committed. By law, they have to tell the police about any crime that is going to be committed before it happens. If they find out about it afterwards, the rules are different.
It would be a sin for a priest not to intervene to stop a murder from occurring. People don’t confess sins ahead of time unless they are asking for help.