The Constitution and its amendments protect citizens from government infringement up until the point one's actions put other people in harm's way (ex. Clear and present danger in regards to free speech).
In regards to discrimination, no American citizen should be treated differently simply because of their race or gender. However, if they show outright signs of causing or possibly causing danger to others, the government has a right and responsibility to protect the rest of its people from a potential threat.