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