Certain behaviors (such as occupy other people's property) do not suddenly become legal/ethical just because you have a climate activism agenda in your head.
Most social change over the years has happened because of activist action which was considered 'illehal' at the time. Civil rights, workers rights, voting emancipation etc etc. Legal and ethical are not necessarily the same thing.