The validity of the principle of legality in the stage of initiating a criminal case