Well now theres a question lol and there is no definitive answerer.
There are various options available and only you can decide as to which avenue to go down.
A lot depends on the circumstances, type of location the means and method as to which you have gained entry etc etc.
There really is a very long list of how you could play it at the end of the day & the responsibility of the situation is all yours.
I guess there are things you should bare in mind and also be aware of which may assist in a more favourable outcome.
Spend some time researching into the area of trespass civil and criminal.
Baring in mind the law differs in Scotland than of that of the rest of the UK as they have a right to roam.
How carrying certain Items can be viewed as going equipped to steal.
There are also certain types of location where the law differs as Trespass on railway, government or crown property is a criminal offence.
Doing the above will give you a better idea but never assume after doing so you are some kind of expert.
Security
Security Officers are normally low paid and work long hours often alone in out of the way places.
Their role being to protect property from theft, arson and vandalism
Also worth noting to preventing & protect curious members of the public from straying into locations which can be hazardous in nature?
Most are decent people just trying to earn a wage and get by in life.
Through Urban Exploration we have chosen to venture into an area in which they are responsibly for and at some point we are destined to cross paths
Regardless to how stealthy we are as Ninjas we are not.
On initial contact they have no idea as to our intentions and have always thought this moment to be crucial in taking away any fear or apprehensions they may have.
This is normally done by being polite courteous and make clear the purpose of you being on the property and have no problems with leaving.
The camera and tripod in view is normally enough and if the location is one visited via us often they have seen it all before.
Most are happy once they have confirmed no damage has been done regarding method of entry,
Even the offer for them to look through the contents of your bag, which ive done on occasion as have nothing to hide & If requested provide ID.
More often than not you will find you are simply escort from the property.
A recent conversation with secca gave me a good insight as to why he had personally adopted this approach.
He explained two months previously a his friend a security guard on the same site had been beaten with iron bars and kicked unconscious by metal thieves he had come across.
He said they had a call button to summon Police in his office and he would use this button every time he came across people on the site. Which was quite often?
When he really needed them the Police assumed same old same old and took almost an hour to respond.
Even if secca is all excited, unprofessional and in a semi panic remain calm and don’t allow the situation to escalate or get silly.
Put secca at ease and make clear you are no threat and assure you have no criminal intentions.
The Police.
Again the Police have a job to do as is their duty.
If they are responding to a call they have to ascertain if there has been any intent or criminal offence committed and if so gain evidence for the CPS.
Be open and honest with them and normally common sense wins the day.
If its not a normal day & the officers is having a bad one you could find your self being arrested for the offence of being found on enclosed premises.Vagrancy act 1824.
I have on several occasions been arrested for this and is used as a means of locking you up with a view to obtain evidence through further interview.
Ive never heard in modern times any Urban explorers being prosecuted for this offence by the CPS.
It’s more used to buy time so they can go on a fishing trip.
As long as you have committed no criminal offences and the Station you are being held in aren’t too busy you will find your self released in a few hours.
If they are busy you could find your self in over night and recommend just getting your head down.
This Article I found an interesting insight
Vagrancy Act 1824 | PC Richard Stanley
I hope this gives you food for thought and helps some
As said im no expert in the law but having an insight does help and ignorance in the eyes of the law is no excuse.
Have fun with it and stay safe