It is lawful until the owner of the property requests the officer leave the scene, unless there is a good reason for the officer to be there (setting up to RADAR someone isn't).
If you can prove that the officer was told earlier to leave the driveway, and then got you, you probably could get a ticket dismissed on those grounds.

