Turn off iMessage on computer but not on iPhone
In the Messages application on your Mac, go to 


Messages > Preferences > Accounts
select your iMessage account
uncheck the "Enable this account" checkbox that is below your Apple ID.