"to any person except for the purposes of this act or as a witness in a court of law during a prosecution in terms of this act shall be guilty of an offence and liable on conviction to a fine not exceeding r or to imprisonment for a period of years or to both such fine and such imprisonment"