It may be a violation of realtor ethics, and so grounds for a complaint to the real estate licensing board, but is not strictly speaking illegal--the listing agent can contact buyers directly (at the risk of a complaint), and the buyers are perfectly free to listen politely, or hang up, or say "thanks, but talk to our agent--that's what we have him/her for."