A “charming” spy pretended he was a police officer tracking down a suspect as he wooed a young beautician – while secretly working for Russia, a court has heard.