An amplify-and-forward (AF) relay jamming signal can pass through any civil and military wireless communication system. Hence, AF relay jamming is dangerous and should be detected and suppressed before demodulation/decoding/decryption in wireless communication systems. The 5G positioning reference signal (PRS) and 5G synchronization reference signal (SRS) play critical roles especially for autonomous driving and link establishment between a user equipment (UE) and a near gNodeB. Both the PRS and SRS are publicly known and vulnerable to AF relay jamming. The goal of this paper is to present an effective and low-complexity 5G-and-beyond UE positioning algorithm against an AF 2-dimensional time delay (TD) and frequency shift (FS) relay jamming. Preliminary results for the proposed algorithm using a Global Positioning System (GPS) receiver scenario are presented under a 1D AF TD relay jamming environment to validate the effectiveness of the proposed algorithm.