There is no simple answer to this question.
Everything depends on what the person occupying does. Some offenses it is the owner who is responsible, but there is always a way out if you are unaware. But this cannot be used to rent,lease something knowing that it will be used for unlawful purpose(eg. Terrorism). There are strict liability offences where the knowledge is not required to convict a person.
In short do not give to unknown person and have a clause that it would not utilize for illegal act and if used for such thing it should have some clause to terminate the agreement and also to confiscate the advance or part of it.