If you're arrested and charged with statutory rape in Pennsylvania, you need to take the proper precautions. You should not talk to the police, the detectives, law enforcement in any capacity. You need to engage with an experienced Pennsylvania Sex Crimes lawyer to help you prepare the best possible defense and to respond accordingly. After an arrest and charges, court proceedings would take place. A preliminary hearing would be scheduled at a given time.
You need to have an attorney prepare so that come the time of the preliminary hearing, the matter can be addressed as effectively as possible. Later, in the process, there could be or would be trial proceedings. Your attorney can help you best defend during any and all court proceedings including trial proceedings. Fundamentally, you shouldn't do anything on your own, you should have an attorney take all necessary and appropriate steps on your behalf. Being charged of statutory rape is incredibly serious and having an experienced attorney in your corner from as early as possible, will be your best ally to help you defend against allegations of this nature.