Is there anyway to prevent this? Please advice.
Really all you can do is make it harder and not worthwhile for someone to look at your code. So if you are really concerned you may just obfuscate your source files.
EDIT: Sorry, I was thinking you were meaning mobile…..but some of the above probably still applies.