Formation and development of the institution of state protection (historical and legal research)