This article teaches you how to turn off your IR sensor when you don't want your Apple TV Remote to work with your Mac. Go to
System Preferences, click on
Security & Privacy. Click on the
lock and unlock it with your computer password. Click on
Advanced, and tick on
Disable remote control infrared receiver. The remote will not work with your mac until you uncheck the option.