If you're accused of lewd conduct in Pennsylvania, you need to take the necessary precautions, but you also shouldn't necessarily beat yourself up. Lewd may be an arbitrary term. A fundamental question to be asked at the given time would be, did you, in fact, commit any lewd conduct? In terms of taking the necessary precautions, that would include not speaking to the police, detectives, law enforcement in any capacity. You also need to engage with an experienced Pennsylvania sex crimes lawyer as soon as possible.
An attorney can help you understand and navigate the criminal process. Arbitrary or not, being accused of lewd conduct is incredibly serious. It can affect your freedom, you can go to jail or prison. It could affect your career, your employment, your professional license, your family. Having an experienced attorney, they'll help you gather the necessary evidence, arrange for the necessary witnesses, analyze the evidence, analyze the potential witnesses' testimony to help you build the strongest possible defense. Having an experienced attorney in your corner from as early as possible will help you best defend against allegations of this nature.