The city wants to purchase a hotel near Imperial Beach to convert into a transitional housing facility. But the state’s Coastal Commission has said the project runs the risk of violating its requirement that cities preserve cheap hotel rooms near the beach. City Councilman David Alvarez alerted the agency to the project, which is in his district.