LONDON—The U.S. warned Greece against assisting the Iranian tanker released by Gibraltar as it continues efforts to block the vessel and further drags its allies into escalating tensions between Washington and Tehran.

“We have conveyed our strong position to the Greek government on the matter, as well as all ports in the Mediterranean that should be forewarned about facilitating this vessel,” the State Department said.

A...