A peace officer in executing a search warrant, who willfully exceeds his authority, or exercises it with unnecessary severity, is guilty of a misdemeanor.
R.L.1910, § 6078.