When you build a PWP or place a building, there has to be a one-square-wide perimeter around the object. When there are two buildings or two PWPs next to each other, there needs to be two squares of space between them.
When Isabelle tells you it's too close to something else, it means that the object;s true perimeter overlaps with a nearby object (river, rock, building, plaza/train station tiles, etc).