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