Neither. "across" is a part of the phrasal verb "come across".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Some grammarians have it as a preposition, some an adverb and some a particle. There is no general agreement.