Police are issuing a warning as people in their homes have a right to defend it.