Take a step back
Shooting at wide angles exaggerates perspective distortion, so in the case of shooting tall buildings from up close at wide angles, you need to point the camera upwards to get the entire building in the frame. This makes the top of building much smaller than the bottom, and look as if the building is leaning back.
The solution is to shoot from further back and zoom in – although in crammed streets this isn’t always possible. Even better is if you can shoot from a higher vantage point.