See (720 ILCS 5/24-1) (from Ch. 38, par. 24-1) and consult an experienced criminal defense lawyer. The application of a statute is not a simple exercise but rather a complex legal analysis that includes the statute, the legislative history and intent, and the caselaw thst may limit or expand the meaning of the statutory language.
Criminal statutes usually detail what is not legal to do as opposed to what is legal to do.
Of course, every answer is based on the question asked and requires a more complete context. This answer should not be relied upon to make a legal decision. Seek the advice of an experienced criminal defense attorney before acting. Law Offices of Raymond G. Wigell, Ltd. Defenders of the Constitution since 1975/ Aggressive Creative Defense Strategies/ Website: www.waaltd.com 24/7 --(708) 481-4800.