Stop iPhone from sending iMessages to OS X
Go to Messages on your Mac, open Preferences (in the menu bar, it's Messages > Preferences), click on Accounts, click on your Apple ID in the list of messaging accounts, and uncheck "Enable this account."