Two women walk with the protection of an umbrella in Old San Juan, Puerto Rico, Saturday, Aug. 2, 2014. Bertha pushed just south of Puerto Rico on Saturday as it unleashed heavy rains and strong winds across the region. (AP Photo/Ricardo Arduengo)

SAN JUAN, Puerto Rico – Tropical Storm Bertha swirled over the eastern Dominican Republic late Saturday after it whipped Puerto Rico with heavy rains and strong winds that knocked out power in parts of the region.

The storm passed just southwest of Puerto Rico on Saturday afternoon, dropping between 3 to 5 inches (8-13 centimetres) of rain, with isolated amounts of up to 8 inches (20 centimetres).

Gov. Alejandro Garcia Padilla warned of flooding, landslides and swollen rivers, which he urged people not to try and cross.

“It’s something that sounds obvious but it happens so often,” he said. “It’s not the time to take risks.”

Authorities reported several downed trees in Puerto Rico’s eastern region and two downed electrical posts. Nearly 39,000 households were without power and more than 3,000 without water. The lights also had gone out at the island’s emergency management agency during a press conference Saturday morning.

Officials said most of the power outages occurred in the island’s central mountainous region following more than 1,200 lightning strikes that occurred in the area during afternoon hours alone.

The heaviest rains fell in the island’s southern and eastern regions, with authorities warning people to stay indoors.

Jose Colon Rivera, 50, who lives in a rural area near the southern town of Cayey, said in a phone interview that he could hear the wind whistling loudly through his zinc roof.

“If anything happens, I can always run,” said Colon, who was watching wrestling on TV as he waited for the storm to pass.

Some 220 people arrived at several government shelters in Puerto Rico’s southeast region, the majority of them international athletes participating in a youth baseball tournament.

Ingrid Vila, gubernatorial chief of staff, said Puerto Rico’s main international airport remained open but that several flights had been cancelled.

Authorities closed El Yunque rainforest, a popular tourist attraction in northeast Puerto Rico, and ferry rides to the neighbouring islands of Culebra and Vieques were cancelled.

Downed trees limbs also were reported across St. Croix in the U.S. Virgin Islands, where a coastal buoy south of St. Thomas recorded wind gusts of 72 mph (115 kph).

Tropical storm warnings were in effect for the eastern Dominican Republic, southeastern Bahamas and the Turks and Caicos islands. A tropical storm watch was in effect for central Bahamas.

As the storm approached the Dominican Republic, authorities banned vessels from operating along the country’s east coast, which is popular with tourists. Rescue crews also travelled to the country’s eastern and northeast regions to help with evacuations if needed.

On Friday, Bertha passed just north of the French Caribbean island of Martinique, where it left 150,000 homes without power, government spokeswoman Audrey Hamann said in a phone interview. The storm also left hundreds of people without power along Dominica’s eastern region.

Antigua-based regional airline LIAT cancelled several flights in Dominica, St. Lucia, Puerto Rico and the Dominican Republic. Seaborne Airlines also cancelled flights in Puerto Rico and the Dominican Republic, while the U.S. Coast Guard closed ports in southern Puerto Rico.

The storm brought some rain to a drought-hit area of southern Puerto Rico, but it was not yet known whether it rained enough to cancel strict water rationing measures that are scheduled to start on Wednesday, authorities said.