The court may, in its discretion, include in any injunction against a violation of this chapter such other restraint as it may deem expedient in order to deter the defendant from, and insure against, his committing a future violation of this chapter.