The structure is a parallel construction: “为非” (wéi fēi) means “to do wrong,” and “作歹” (zuò dǎi) means “to commit evil.” Putting them together creates a powerful, emphatic idiom that covers the full spectrum of malicious behavior. It literally means “to do wrong and commit evil,” leaving no doubt about the wicked intentions and actions of the subject.