A person commits an offence if the person occupies premises when forbidden to do so.
A person is forbidden to occupy premises during the period that—
begins with the person’s—
removing from the premises in accordance with a requirement imposed under section 9, or
being ejected from the premises by virtue of a warrant granted under paragraph 3 of the schedule, and
ends with the first day on which notice is displayed in accordance with section 9(4)(a) that the Scottish Ministers have become satisfied that no-one would be endangered by occupying the premises.
A person who commits an offence under subsection (1) is liable on summary conviction to—
a fine not exceeding level 5 on the standard scale,
a term of imprisonment not exceeding 3 months, or
both.