There's a border court where you can appeal the idiotic decisions of any customs agent. The trick is finding out when they are in session, which is once a week at the Canada/US border but all points of entry have this same court but it is hardly advertised. I overturned numerous bans from entering the US, in fact the judge each time rubber stamped me in