Either, the freeloading would be allowed, or they will not receive the benefits and common ownership. It can work like, "You don't work, you can't expect the benefits of the community".
We need to work(produce) to survive, so contribution to the community is necessary to live. If the person doesn't contribute to the community, then the person shouldn't receive the benefits from labor(unless, the person has disabilities, in that case, they may not be required to do some labor).
There is no force here, they can't force this person to work, but can deny benefits(then can leave the community).
Now, you mention stealing, since this person may be denied benefits, that person may try to steal for themself. People who steal or use violence threaten the social peace of the community. Anyone who doesn't respect the social peace shouldn't be part of the community, they would have to be banished. There would be no prisons or death penalty, but just banishing from the community and possibly joining another community elsewhere.