If you hold that button too long, it will set off the alarm. Try holding it for a lesser period. You have to be as close as you would be for the unlocking of your drivers door. Mine works at a distance of 30-40 feet.
2011 550iX GT, 2011 MB C300 sport, 2003 Porsche C2 Cab