avoiding legal trouble