Dude, you aren't "throwing the race card" when you point out someone was profiling; you're just pointing out racism. Don't let people put spin on your fundamental human right not to be treated like crap.
To address the sidewalk issue itself, yes, it's BS. If you go to court, just explain what you were doing, and the judge will probably throw it out.