Do I have to fly to United in order to enter one of those lounges? or it's OK if I fly another airline and try to enter?
Per United Airlines website:
Effective November 1, 2019, United Club customers, including members and their guests, and one-time pass holders will need to provide a same-day boarding pass for travel on United, Star Alliance or a contracted partner for entry into all United Club locations.