No person shall be excused from giving any testimony or evidence upon any investigation or prosecution for violation of this article, upon the ground that such testimony would tend to convict him of a crime, but such testimony or evidence shall not be received against him upon any criminal investigation or prosecution, except in a prosecution against him for perjury committed in giving such testimony.
R.L.1910, § 2508.