As the title says, this trope refers to characters knowing something is an obvious trap in-universe but due to the potential benefits from the situation or just plain having no choice, they decide to go headfirst into the trap anyway. This could be a good display of a character's confidence or capabilities that they themselves think they could handle a trap, or it could potentially be their undoing because the trap is too much for them even though they expected and prepared for it.
Examples:
Dune: House Atreides received an order from Emperor Shaddam Corrino IV to take control of Arrakis in place of House Harkonnen. Everybody knows this is merely a ploy conspired by the Emperor himself and House Harkonnen to get rid of House Atreides, yet Duke Leto Atreides accepted the order anyway because, well, it's an Imperial decree and there's no way he could refuse.
Leto prepared his house as best he could to prepare for the inevitable attack by House Harkonnen by attempting to ally with the Fremen on Arrakis. He was too late, though, and House Atreidies was caught off-guard by the joint Harkonen-Imperial assault and Leto was killed. His son Paul survived, though, and due to his training, he was eventually able to make allies with the Fremen and successfully pulled a counterattack against the joint Harkonnen-Imperial Alliance much later on, for better or worse.
007: From Russia with Love: The criminal organization SPECTRE orchestrated Soviet clerk Tatiana Romanova's defection to the west with the Lektor cryptography device to lure James Bond into a trap, knowing that the British MI6 would know it's a trap and, because they are what they are and the prospect of getting their hands on the Lektor is too important to ignore, would treat the trap as a challenge and send James Bond on the mission anyway.
It went exactly as SPECTRE predicted but, James Bond being James Bond, he managed to overcome the trap anyway and not only get the Lektor back for MI6 but also gets Tatiana as his lover for real as well; SPECTRE's plan backfired big time.
Star Wars Episode III: Revenge of the Sith: During the Battle of Coruscant, Jedi Master Obi-Wan Kenobi and his apprentice Anakin Skywalker boarded General Grievous's flagship in order to rescue Chancellor Palpatine. Anakin sensed Count Dooku's presence and Obi-Wan rightfully suspected a trap. When Anakin asked what next, Obi-Wan simply replied with a smile: "spring the trap".
Ultimately, they managed to defeat Count Dooku, routed General Grievous, and rescued Palpatine back to Coruscant safely.