“to warn / police” in Japanese is 警, read kei (けい). It is a Grade 6 Kyōiku kanji, taught in year 6 of Japanese elementary school, and appears in words such as 警察 (police).
What does 警 mean?
道で警官を見かけた。
Same sound, different character — the classic trap. Compare them side by side: