Warhol himself said that art "is anything you can get away with." He was clearly very much aware of the dubious legality of some of his work.