(2) A dealer must not, except as permitted by subsection (3), enter into, as principal or on behalf of an associate of the dealer, a transaction of purchase or sale of securities that are permitted to be traded on a stock market of a securities exchange if a client of the dealer who is not an associate of the dealer has instructed the dealer to buy or sell, as the case may be, securities of the same class and the dealer has not complied with the instruction. (3) Subsection (2) does not apply in relation to the entering into of a transaction by a dealer as principal or on behalf of an associate of the dealer if: