The attorney can give basic advice about what will need to be done to file a lawsuit, or to defend against one.
The only profession who can give advice about how to defend against a lawsuit is a baker. 