i studied law @ A level and I know this for a fact ...
to commit a crime you need ... the mensrea and the actusrea.
mensrea is the forethought of commiting a crime.
actusrea is the action of committing a crime.
you've already stated you dont know the laws so no crime has been committed.
so until you're actually told something is illegal its not.
Wow, I've read some inaccurate advise on the Internet before, but this is downright dangerous.
Your statement about a lack of knowledge of an illegal activity is utterly incorrect I'm afraid. I'm sure the OP is grateful for your attempt at helping his situation, but an A Level in 'Law' doesn't really qualify you to offer advise. Your earlier statement rather proves this.
I consider myself quite qualified to answer but as the offence has occurred in Scotland, the laws are often quite different. Had this been an offence in Enland and Wales, we'd be in a better position to help the OP.