There are still limitations to the AI in general so do remember that. But they key thing to try to avoid is 'pinching' the main center AI line up against the edge. AI see the edge as a 'wall' so if the line squeezes up against the edge line too much they can freak out. In some cases it still may be required to get the line in the editor so you can fine tune certain areas. Also when recording you sometimes have to make a compromise between an ideal line and one that works. You may also have to use ai_hints in areas like that to slow them up a bit more entering that area.