They HAD intent - they intended to break into the building, brought the tools, etc. If the contract does not stipulate that they are allowed to break in then they're basically screwed.
"I didn't mean to break in" holds no ground in court if they actually were breaking in.