If someone has a restraining order, e.g. to stay at least 500 m away from the house of his former wife and children, and he violates that restraining order, he will get arrested, even if he was cleaning graffiti or helping old ladies cross the street at the time.