Unfortunately, this idea has not worked out. If you look at people who have been convicted a few times, reoffending rates approach 100% for Sweden.
Then there's all the suffering for the victims who get no help what so ever from the police who pretty much just let everyone go.
For instance, breaking a restraining order might at most get that person a fine. Although in reality the risk of actually getting that fine is small because prosecutors don't generally bother prosecuting someone to just get them a fine. Basically, if someone wants to kill you, the police won't help you.