I'm not an attorney, but I've closed countless deals with multiple title attorneys involving assignments of contract over many years. Would thousands of title attorneys be party to millions of transactions that are illegal? I doubt it. I plan to continue to do assignments of contract as often as I can.
Having said that, if you're looking for a reason to not do something, you won't have too much trouble finding someone who will tell you that whatever you're trying to do is illegal. Not too long ago, someone on this forum said that double closings are illegal. I've done lots of those too, and I plan to continue to do as many as I can in the future. As far as I can tell, they're not illegal either.
My primary focus is on helping people, and I get to do that in the process of building my real estate investment portfolio. I have no interest in breaking the law, so if I know something's illegal, I won't do it. However, I also have no interest in going to law school before I pursue each deal. If that's what I thought I had to do, I'd likely change businesses and never do another real estate deal.