Although “refrain” was once a synonym for “restrain” it is now an intransitive verb: it should not have an object.