This is the fruit of the beach rose (Rosa Ragusa). There were a lot of them next to the boardwalk to Salisbury Beach.