It would be best for you to accept and then come to terms with those feelings of guilt. Denying them isn't working. If it was you wouldn't have had this dream. Broken conventions in our dreams frequently give expression to denied portions of our psyches. Dreams are frequently filled with police and outlaws.
Police officers are usually symbols of control.
The severity of the action the police take in your dreams relates to the severity of the problem of control in waking life. Dreaming you are going to prison may mean you secretly desire greater control of your life. It might also symbolize a certain aspect of your life you are feeling very guilty about and think needs some restraint. Jails and prisons in dreams are places where we store our guilt. When the police are prosecuting you, they become symbols of guilt.