Regardless who who this man was , and what predicament caused him to be attacked by two men in night in middle of busy street , we have to condemn the actions , if such action is not acceptable in Pakistan it is not acceptable else where.
That is the Universal law of Humanity
Now as for Pakistanis in foreign countries
1) Well every one have to keep their eyes open and be aware of where they are
2) What time of day they are in certain part of cities no different then when they are in
Pakistan
3) Having street smarts is important
If you are going to be with a girl are you going out with group of friends ? Or solo
Drinking bars = 99% Source of major fights and criminal activities
If you are outside a bar , after hours and not knowing crime scene in that neighborhood
You yourself are increasing certain risk around you. And the last thing you want to do is get in a altercation with someone and you have no way to drive away from situation , as you are stuck in the spot while other guy goes gets reinforcement/weapon
China in any case is 100% Safe society for all people including Pakistanis, however when in foreign country Pakistani Students also have some responsibility to know the cultural norms of society and be aware of their surroundings and not be stuck in middle of a dodgy city ally
If it is 11 o clock in night or 1 o clock in night and you have no car to get home , you are on side of street , you are waiting for a bad thing to happen
If you are in wrong part of city in Pakistan/ any major metro city you can still get killed similar way after a robbery attempt or altercation