There is a Ran in Droshas HaRan on Parshas Shoftim who says that aside from the system of beis din which was limited in its ability to punish, there would also be a legal system directed by the king or other authority who would have the ability to punish criminals without the halachic restrictions; for otherwise there would be anarchy.What difference is it that you are a girl.