Officers were called to the area between Castlelaw and Mauricewood on January 16 and found a number of motorists had caused an obstruction by parking illegally on a clearway.
Police warned a number of people their actions were dangerous in addition to uplifting the vehicles.
Sergeant Michele Lindsay of the Penicuik Community Policing Team said: “I would like to remind visitors that the A702 between Castlelaw and Mauricewood is subject to a Clearway, meaning no stopping in this area is allowed.
"Please park in a designated car park as officers will be carrying out patrols to ensure people are staying safe.
"If there is nowhere safe to park then please visit another day and don’t park illegally.
"You should not obstruct any footpaths as these are designed to keep members of the public safe and prevent them from having to walk on a roadway.”