Illegality is a willful act that does not conform to the current provisions of the law, infringes upon the rights of the subject and the legal obligations undertaken by people. Sometimes referred to as "wrongful act".
Illegal behavior is illegal behavior, and people often equate them, mainly because they both have the characteristics of violating the law, but illegal behavior is not necessarily illegal behavior, it also includes objective illegal behavior. [1]