Your best source would be to search for rulings on detentions and arrests. There are any number of things that will come up on you search. These things have been litigated endlessly already in practically every State and Federal Court. In some civil cases, the plaintiff prevails. In most cases, they fail.
Even if it were a likely (but not certain) lose wouldn’t it be virtuous if practical to at least put up the resistance afterwards, make a lot of noise etc? The more the government is tied up in court and against public opinion the less it can harass?