I keep getting UTI’s😭

Every time I have sex I immediately get up to pee but somehow I still always end up with a UTI it’s so frustrating what am I doing wrong ??