then you may have been trespassing
a non registered student is not permitted on the grounds to protest.
a registered student may protest in accordance with rules allowing for forms of acceptable protest and that student will most commonly need to be registered to the student body and follow their rules of protest including notifying the student body of the intent to enter, date and location of the protest and most probably seek to come to a compromise for the issue that is sought to be protested..
Universities are specific legal titles that may choose to exclude public & various otherwise legal titles at their discretion.
the intent to enter the property with the intent to break those rules makes the student in breach.
if they are a non student they are trespassing by illegal entry and may consequentially be prosecuted.
though the cost for the university time and court time to prosecute such incidence is largely passed over to give more serious offenses more court time.
such trespass orders are only done as a last resort to officially notify such people and start court proceedings, as such people are most commonly of the nature to force their desires on others regardless of warnings and social etiquette.
such is the sad nature of obsessive compulsive delusional mental health issues.
mild schizophrenia with obsessive compulsiveness behavioral issues sitting on power and control issues from childhood issues/ abuses etc....
it is sad to see the massive cost that is created for an ounce of preventative better psychiatric care access at a younger age.
40 years ago though such science was beyond most peoples access.
the leaps and bounds in mental health science around compulsive disorders and schizophrenia, behavioral disorders and things like autism has leap-frogged ahead like the right brothers to suddenly landing on the moon.
good news over all.